]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
require kpartx and partx for some modules
authorHarald Hoyer <harald@redhat.com>
Wed, 25 Jul 2012 11:00:08 +0000 (13:00 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 25 Jul 2012 11:00:08 +0000 (13:00 +0200)
dracut.spec
modules.d/90dmraid/module-setup.sh
modules.d/90mdraid/module-setup.sh
modules.d/90multipath/module-setup.sh

index 9a93e5768db96181df48b01d880e298f8c9c3f6a..0d4062fa9414dea2b2f50c7b393ccb32768131ca 100644 (file)
@@ -81,6 +81,7 @@ Requires: gzip xz
 Requires: module-init-tools >= 3.7-9
 Requires: sed
 Requires: file
+Requires: kpartx
 Requires: udev > 166
 %if 0%{?fedora} || 0%{?rhel} > 6
 Requires: util-linux >= 2.21
index dad54a4affeee7ff88c78765f69bac332ff65bbb..10c732ceb24880ea5bd8ca8fbe1e3336e326f923 100755 (executable)
@@ -51,7 +51,8 @@ depends() {
 
 install() {
     local _i
-    dracut_install dmraid partx kpartx
+    dracut_install dmraid
+    dracut_install -o partx kpartx
 
     inst "$moddir/dmraid.sh" /sbin/dmraid_scan
 
index 7b6f0a97f5296317e1ac4477e399cc1df8c647dd..7b3c759cec58168ea3fa3f0a39b463934bc405d6 100755 (executable)
@@ -43,8 +43,8 @@ installkernel() {
 }
 
 install() {
-    dracut_install mdadm partx cat
-    dracut_install -o mdmon
+    dracut_install mdadm cat
+    dracut_install -o mdmon partx
 
      # XXX: mdmon really needs to run as non-root?
      #      If so, write only the user it needs in the initrd's /etc/passwd (and maybe /etc/group)
index 5944d255d089ac94f4172f5c05665e2ac9127300..b14f82930e9a65cbcd5156cd08009cd8c261b9cf 100755 (executable)
@@ -70,13 +70,14 @@ installkernel() {
 install() {
     local _f
     dracut_install -o  \
-        /sbin/dmsetup \
-        /sbin/kpartx \
-        /sbin/mpath_wait \
-        /sbin/multipath  \
-        /sbin/multipathd \
-        /sbin/xdrgetuid \
-        /sbin/xdrgetprio \
+        dmsetup \
+        kpartx \
+        partx \
+        mpath_wait \
+        multipath  \
+        multipathd \
+        xdrgetuid \
+        xdrgetprio \
         /etc/xdrdevices.conf \
         /etc/multipath.conf \
         /etc/multipath/*