]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
rootfs-block: in systemd mode, functionality is in the dracut services
authorHarald Hoyer <harald@redhat.com>
Wed, 6 Mar 2013 16:04:00 +0000 (17:04 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 6 Mar 2013 16:29:11 +0000 (17:29 +0100)
modules.d/95rootfs-block/module-setup.sh

index 732aefb766e50a04279b75457bf86073c0e30e1b..0c7701dc5ee2ad781bd2cf3afb4c05c0b7b93ac4 100755 (executable)
@@ -23,7 +23,6 @@ check() {
             echo "root.journaldev=$journaldev" >> "${initdir}/etc/cmdline.d/95root-jurnaldev.conf"
         fi
     return 0
-
 }
 
 depends() {
@@ -32,8 +31,10 @@ depends() {
 
 install() {
     dracut_install umount
-    inst_hook cmdline 95 "$moddir/parse-block.sh"
-    inst_hook pre-udev 30 "$moddir/block-genrules.sh"
-    inst_hook mount 99 "$moddir/mount-root.sh"
+    if ! dracut_module_included "systemd"; then
+        inst_hook cmdline 95 "$moddir/parse-block.sh"
+        inst_hook pre-udev 30 "$moddir/block-genrules.sh"
+        inst_hook mount 99 "$moddir/mount-root.sh"
+    fi
 }