diff options
author | Harald Hoyer <harald@redhat.com> | 2013-07-11 12:15:17 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2013-07-11 12:15:17 +0200 |
commit | bf9cdc472ccbb596daa6f0c95d828d46bae2be57 (patch) | |
tree | 91d15053ded018f49ed5cf3ba506efbd3886e063 /modules.d | |
parent | 02b5c8e3a31e277fde4844b1921fe3f340b28c65 (diff) | |
download | dracut-bf9cdc472ccbb596daa6f0c95d828d46bae2be57.tar.gz dracut-bf9cdc472ccbb596daa6f0c95d828d46bae2be57.tar.bz2 dracut-bf9cdc472ccbb596daa6f0c95d828d46bae2be57.zip |
systemd/module-setup.sh: create emtpy /etc/machine-id
Even in hostonly mode, if none was found on the system.
Diffstat (limited to 'modules.d')
-rwxr-xr-x | modules.d/98systemd/module-setup.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules.d/98systemd/module-setup.sh b/modules.d/98systemd/module-setup.sh index cfb29ae4..4049160f 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 |