From 3dd3840f3a6f111505dc3c6f3ed463f083f07d98 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 17 Oct 2011 16:19:38 +0200 Subject: [PATCH] systemd: only run systemd-machine-id-setup if /dev/urandom exists. --- srcpkgs/systemd/INSTALL | 4 +++- srcpkgs/systemd/template | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/srcpkgs/systemd/INSTALL b/srcpkgs/systemd/INSTALL index a4106c89b2e..7c22ecac50a 100644 --- a/srcpkgs/systemd/INSTALL +++ b/srcpkgs/systemd/INSTALL @@ -1,5 +1,7 @@ case "${ACTION}" in 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 diff --git a/srcpkgs/systemd/template b/srcpkgs/systemd/template index 557d98a8860..31acf8d5594 100644 --- a/srcpkgs/systemd/template +++ b/srcpkgs/systemd/template @@ -1,7 +1,7 @@ # Template file for 'systemd' pkgname=systemd version=37 -revision=2 +revision=3 distfiles="http://www.freedesktop.org/software/$pkgname/$pkgname-$version.tar.bz2" build_style=gnu_configure configure_args="--with-distro=other --with-rootdir=