]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
systemd: add more targets and tools
authorHarald Hoyer <harald@redhat.com>
Tue, 24 Mar 2015 14:54:42 +0000 (15:54 +0100)
committerHarald Hoyer <harald@redhat.com>
Tue, 24 Mar 2015 15:02:09 +0000 (16:02 +0100)
also set the multi-user.target as the default target

modules.d/00systemd/module-setup.sh

index 3852ff7e2d0f131abbb7b26f5efe9bc9f84d1c59..9d406589e6aaabd2c716c37410c23b7f962275b4 100755 (executable)
@@ -55,7 +55,10 @@ install() {
         $systemdsystemunitdir/local-fs-pre.target \
         $systemdsystemunitdir/remote-fs.target \
         $systemdsystemunitdir/remote-fs-pre.target \
+        $systemdsystemunitdir/multi-user.target \
         $systemdsystemunitdir/network.target \
+        $systemdsystemunitdir/network-pre.target \
+        $systemdsystemunitdir/network-online.target \
         $systemdsystemunitdir/nss-lookup.target \
         $systemdsystemunitdir/nss-user-lookup.target \
         $systemdsystemunitdir/poweroff.target \
@@ -121,7 +124,11 @@ install() {
         \
         $tmpfilesdir/systemd.conf \
         \
-        journalctl systemctl echo swapoff systemd-cgls systemd-tmpfiles
+        journalctl systemctl \
+        echo swapoff \
+        kmod insmod rmmod modprobe modinfo depmod lsmod \
+        mount umount reboot poweroff \
+        systemd-cgls systemd-tmpfiles
 
     inst_multiple -o \
         /usr/lib/modules-load.d/*.conf \
@@ -169,9 +176,8 @@ install() {
 
     # install adm user/group for journald
     inst_multiple nologin
-    egrep '^systemd-journal:' "$initdir/etc/passwd" 2>/dev/null >> "$initdir/etc/passwd"
-    egrep '^wheel:' "$initdir/etc/passwd" 2>/dev/null >> "$initdir/etc/passwd"
-    egrep '^adm:' "$initdir/etc/passwd" 2>/dev/null >> "$initdir/etc/passwd"
+    egrep '^systemd-journal:' /etc/passwd 2>/dev/null >> "$initdir/etc/passwd"
+    egrep '^adm:' /etc/passwd 2>/dev/null >> "$initdir/etc/passwd"
     egrep '^systemd-journal:' /etc/group >> "$initdir/etc/group"
     egrep '^wheel:' /etc/group >> "$initdir/etc/group"
     egrep '^adm:' /etc/group >> "$initdir/etc/group"
@@ -208,5 +214,6 @@ install() {
         echo "RateLimitBurst=0"
     } >> "$initdir/etc/systemd/journald.conf"
 
+    ln_r "${systemdsystemunitdir}/multi-user.target" "${systemdsystemunitdir}/default.target"
 }