]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
systemd: add systemd-modules-load.service and hook dirs
authorHarald Hoyer <harald@redhat.com>
Thu, 21 Feb 2013 09:55:52 +0000 (10:55 +0100)
committerHarald Hoyer <harald@redhat.com>
Thu, 21 Feb 2013 11:13:09 +0000 (12:13 +0100)
modules.d/98systemd/module-setup.sh

index 5c09fabff4c39534aa880309edc9ac23bcad4cda..db1f1b49edef09c35aa896ebe3e5ab54366c4c74 100755 (executable)
@@ -30,6 +30,7 @@ install() {
         $systemdutildir/systemd-udevd \
         $systemdutildir/systemd-journald \
         $systemdutildir/systemd-sysctl \
+        $systemdutildir/systemd-modules-load \
         $systemdsystemunitdir/emergency.target \
         $systemdsystemunitdir/sysinit.target \
         $systemdsystemunitdir/basic.target \
@@ -57,6 +58,7 @@ install() {
         $systemdsystemunitdir/systemd-ask-password-plymouth.path \
         $systemdsystemunitdir/systemd-journald.socket \
         $systemdsystemunitdir/systemd-ask-password-console.service \
+        $systemdsystemunitdir/systemd-modules-load.service \
         $systemdsystemunitdir/emergency.service \
         $systemdsystemunitdir/halt.service \
         $systemdsystemunitdir/systemd-halt.service \
@@ -81,6 +83,7 @@ install() {
         $systemdsystemunitdir/sockets.target.wants/systemd-journald.socket \
         $systemdsystemunitdir/sysinit.target.wants/systemd-udevd.service \
         $systemdsystemunitdir/sysinit.target.wants/systemd-udev-trigger.service \
+\
         $systemdsystemunitdir/ctrl-alt-del.target \
         $systemdsystemunitdir/syslog.socket \
         $systemdsystemunitdir/syslog.target \
@@ -89,13 +92,20 @@ install() {
         $systemdsystemunitdir/umount.target \
         journalctl systemctl echo swapoff
 
+    dracut_install -o \
+        /usr/lib/modules-load.d/*.conf
+
     if [[ $hostonly ]]; then
-        dracut_install -o /etc/systemd/journald.conf \
+        dracut_install -o \
+            /etc/systemd/journald.conf \
             /etc/systemd/system.conf \
             /etc/hostname \
             /etc/machine-id \
             /etc/vconsole.conf \
             /etc/locale.conf
+
+        dracut_install -o \
+            /etc/modules-load.d/*.conf
     else
         if ! [[ -e "$initdir/etc/machine-id" ]]; then
             > "$initdir/etc/machine-id"