projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
02b5c8e
)
systemd/module-setup.sh: create emtpy /etc/machine-id
author
Harald Hoyer
<harald@redhat.com>
Thu, 11 Jul 2013 10:15:17 +0000
(12:15 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Thu, 11 Jul 2013 10:15:17 +0000
(12:15 +0200)
Even in hostonly mode, if none was found on the system.
modules.d/98systemd/module-setup.sh
patch
|
blob
|
history
diff --git
a/modules.d/98systemd/module-setup.sh
b/modules.d/98systemd/module-setup.sh
index
cfb29ae
..
4049160
100755
(executable)
--- 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