systemd/module-setup.sh: only create empty machine-id if non existing

master
Harald Hoyer 2012-06-22 15:19:32 +02:00
parent 44cf581732
commit 3639d2431f
1 changed files with 3 additions and 1 deletions

View File

@ -101,7 +101,9 @@ install() {
/etc/vconsole.conf \
/etc/locale.conf
else
> "$initdir/etc/machine-id"
if ! [[ -e "$initdir/etc/machine-id" ]]; then
> "$initdir/etc/machine-id"
fi
fi

ln -fs $systemdutildir/systemd "$initdir/init"