systemd: only run systemd-machine-id-setup if /dev/urandom exists.
This commit is contained in:
parent
2ced4a9f4e
commit
3dd3840f3a
2 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
||||||
case "${ACTION}" in
|
case "${ACTION}" in
|
||||||
post)
|
post)
|
||||||
[ ! -f etc/machine-id ] && bin/systemd-machine-id-setup
|
if [ -c dev/urandom -a ! -f etc/machine-id ]; then
|
||||||
|
bin/systemd-machine-id-setup
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'systemd'
|
# Template file for 'systemd'
|
||||||
pkgname=systemd
|
pkgname=systemd
|
||||||
version=37
|
version=37
|
||||||
revision=2
|
revision=3
|
||||||
distfiles="http://www.freedesktop.org/software/$pkgname/$pkgname-$version.tar.bz2"
|
distfiles="http://www.freedesktop.org/software/$pkgname/$pkgname-$version.tar.bz2"
|
||||||
build_style=gnu_configure
|
build_style=gnu_configure
|
||||||
configure_args="--with-distro=other --with-rootdir=
|
configure_args="--with-distro=other --with-rootdir=
|
||||||
|
|
Loading…
Reference in a new issue