From bf9cdc472ccbb596daa6f0c95d828d46bae2be57 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 11 Jul 2013 12:15:17 +0200 Subject: [PATCH] systemd/module-setup.sh: create emtpy /etc/machine-id Even in hostonly mode, if none was found on the system. --- modules.d/98systemd/module-setup.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules.d/98systemd/module-setup.sh b/modules.d/98systemd/module-setup.sh index cfb29ae..4049160 100755 --- a/modules.d/98systemd/module-setup.sh +++ b/modules.d/98systemd/module-setup.sh @@ -148,10 +148,10 @@ install() { _mods=$(modules_load_get /etc/modules-load.d) [[ $_mods ]] && instmods $_mods - else - if ! [[ -e "$initdir/etc/machine-id" ]]; then - > "$initdir/etc/machine-id" - fi + fi + + if ! [[ -e "$initdir/etc/machine-id" ]]; then + > "$initdir/etc/machine-id" fi # install adm user/group for journald -- 2.7.4