]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
btrfs: no need for btrfs_timeout in systemd mode
authorHarald Hoyer <harald@redhat.com>
Wed, 6 Mar 2013 15:23:58 +0000 (16:23 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 6 Mar 2013 16:29:11 +0000 (17:29 +0100)
modules.d/90btrfs/module-setup.sh

index f6bd648a34ade49bceafac34522d54988e1b374d..0f79f5ef2b1eee29b5dcafcb805ed603cfd73729 100755 (executable)
@@ -40,8 +40,11 @@ install() {
         esac
     fi
 
-    inst_script "$moddir/btrfs_timeout.sh" \
-        /usr/lib/dracut/hooks/initqueue/timeout/btrfs_timeout.sh
+    if ! dracut_module_included "systemd"; then
+        inst_script "$moddir/btrfs_timeout.sh" \
+            /usr/lib/dracut/hooks/initqueue/timeout/btrfs_timeout.sh
+    fi
+
     dracut_install btrfsck
     inst $(command -v btrfs) /sbin/btrfs
 }