Blame 0018-require-kpartx-and-partx-for-some-modules.patch

Harald Hoyer 12f6cc
From 8a240aca9e295eff3941d53d8d107b44859323b7 Mon Sep 17 00:00:00 2001
Harald Hoyer 12f6cc
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 12f6cc
Date: Wed, 25 Jul 2012 13:00:08 +0200
Harald Hoyer 12f6cc
Subject: [PATCH] require kpartx and partx for some modules
Harald Hoyer 12f6cc
Harald Hoyer 12f6cc
---
Harald Hoyer 12f6cc
 dracut.spec                           |  1 +
Harald Hoyer 12f6cc
 modules.d/90dmraid/module-setup.sh    |  3 ++-
Harald Hoyer 12f6cc
 modules.d/90mdraid/module-setup.sh    |  4 ++--
Harald Hoyer 12f6cc
 modules.d/90multipath/module-setup.sh | 15 ++++++++-------
Harald Hoyer 12f6cc
 4 files changed, 13 insertions(+), 10 deletions(-)
Harald Hoyer 12f6cc
Harald Hoyer 12f6cc
diff --git a/dracut.spec b/dracut.spec
Harald Hoyer 12f6cc
index 9a93e57..0d4062f 100644
Harald Hoyer 12f6cc
--- a/dracut.spec
Harald Hoyer 12f6cc
+++ b/dracut.spec
Harald Hoyer 12f6cc
@@ -81,6 +81,7 @@ Requires: gzip xz
Harald Hoyer 12f6cc
 Requires: module-init-tools >= 3.7-9
Harald Hoyer 12f6cc
 Requires: sed
Harald Hoyer 12f6cc
 Requires: file
Harald Hoyer 12f6cc
+Requires: kpartx
Harald Hoyer 12f6cc
 Requires: udev > 166
Harald Hoyer 12f6cc
 %if 0%{?fedora} || 0%{?rhel} > 6
Harald Hoyer 12f6cc
 Requires: util-linux >= 2.21
Harald Hoyer 12f6cc
diff --git a/modules.d/90dmraid/module-setup.sh b/modules.d/90dmraid/module-setup.sh
Harald Hoyer 12f6cc
index dad54a4..10c732c 100755
Harald Hoyer 12f6cc
--- a/modules.d/90dmraid/module-setup.sh
Harald Hoyer 12f6cc
+++ b/modules.d/90dmraid/module-setup.sh
Harald Hoyer 12f6cc
@@ -51,7 +51,8 @@ depends() {
Harald Hoyer 12f6cc
 
Harald Hoyer 12f6cc
 install() {
Harald Hoyer 12f6cc
     local _i
Harald Hoyer 12f6cc
-    dracut_install dmraid partx kpartx
Harald Hoyer 12f6cc
+    dracut_install dmraid
Harald Hoyer 12f6cc
+    dracut_install -o partx kpartx
Harald Hoyer 12f6cc
 
Harald Hoyer 12f6cc
     inst "$moddir/dmraid.sh" /sbin/dmraid_scan
Harald Hoyer 12f6cc
 
Harald Hoyer 12f6cc
diff --git a/modules.d/90mdraid/module-setup.sh b/modules.d/90mdraid/module-setup.sh
Harald Hoyer 12f6cc
index 7b6f0a9..7b3c759 100755
Harald Hoyer 12f6cc
--- a/modules.d/90mdraid/module-setup.sh
Harald Hoyer 12f6cc
+++ b/modules.d/90mdraid/module-setup.sh
Harald Hoyer 12f6cc
@@ -43,8 +43,8 @@ installkernel() {
Harald Hoyer 12f6cc
 }
Harald Hoyer 12f6cc
 
Harald Hoyer 12f6cc
 install() {
Harald Hoyer 12f6cc
-    dracut_install mdadm partx cat
Harald Hoyer 12f6cc
-    dracut_install -o mdmon
Harald Hoyer 12f6cc
+    dracut_install mdadm cat
Harald Hoyer 12f6cc
+    dracut_install -o mdmon partx
Harald Hoyer 12f6cc
 
Harald Hoyer 12f6cc
      # XXX: mdmon really needs to run as non-root?
Harald Hoyer 12f6cc
      #      If so, write only the user it needs in the initrd's /etc/passwd (and maybe /etc/group)
Harald Hoyer 12f6cc
diff --git a/modules.d/90multipath/module-setup.sh b/modules.d/90multipath/module-setup.sh
Harald Hoyer 12f6cc
index 5944d25..b14f829 100755
Harald Hoyer 12f6cc
--- a/modules.d/90multipath/module-setup.sh
Harald Hoyer 12f6cc
+++ b/modules.d/90multipath/module-setup.sh
Harald Hoyer 12f6cc
@@ -70,13 +70,14 @@ installkernel() {
Harald Hoyer 12f6cc
 install() {
Harald Hoyer 12f6cc
     local _f
Harald Hoyer 12f6cc
     dracut_install -o  \
Harald Hoyer 12f6cc
-        /sbin/dmsetup \
Harald Hoyer 12f6cc
-        /sbin/kpartx \
Harald Hoyer 12f6cc
-        /sbin/mpath_wait \
Harald Hoyer 12f6cc
-        /sbin/multipath  \
Harald Hoyer 12f6cc
-        /sbin/multipathd \
Harald Hoyer 12f6cc
-        /sbin/xdrgetuid \
Harald Hoyer 12f6cc
-        /sbin/xdrgetprio \
Harald Hoyer 12f6cc
+        dmsetup \
Harald Hoyer 12f6cc
+        kpartx \
Harald Hoyer 12f6cc
+        partx \
Harald Hoyer 12f6cc
+        mpath_wait \
Harald Hoyer 12f6cc
+        multipath  \
Harald Hoyer 12f6cc
+        multipathd \
Harald Hoyer 12f6cc
+        xdrgetuid \
Harald Hoyer 12f6cc
+        xdrgetprio \
Harald Hoyer 12f6cc
         /etc/xdrdevices.conf \
Harald Hoyer 12f6cc
         /etc/multipath.conf \
Harald Hoyer 12f6cc
         /etc/multipath/*