systemd: only run systemd-machine-id-setup if /dev/urandom exists.

This commit is contained in:
Juan RP 2011-10-17 16:19:38 +02:00
parent 2ced4a9f4e
commit 3dd3840f3a
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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=