]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
systemd: add sysctl.d and sysctl.conf
authorHarald Hoyer <harald@redhat.com>
Wed, 13 Mar 2013 10:07:36 +0000 (11:07 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 13 Mar 2013 10:37:05 +0000 (11:37 +0100)
modules.d/98systemd/module-setup.sh

index 6b00be511f21b5a5faa51115c93f1de014707961..bc4f63ccc1b4a102702cfa57ae752f17bbeab9e3 100755 (executable)
@@ -108,7 +108,8 @@ install() {
         journalctl systemctl echo swapoff systemd-cgls
 
     dracut_install -o \
-        /usr/lib/modules-load.d/*.conf
+        /usr/lib/modules-load.d/*.conf \
+        /usr/lib/sysctl.d/*.conf
 
     modules_load_get() {
         local _line i
@@ -137,10 +138,11 @@ install() {
             /etc/hostname \
             /etc/machine-id \
             /etc/vconsole.conf \
-            /etc/locale.conf
+            /etc/locale.conf \
+            /etc/modules-load.d/*.conf \
+            /etc/sysctl.d/*.conf \
+            /etc/sysctl.conf
 
-        dracut_install -o \
-            /etc/modules-load.d/*.conf
         _mods=$(modules_load_get /etc/modules-load.d)
         [[ $_mods ]] && instmods $_mods
     else