34 lines
1.0 KiB
Diff
34 lines
1.0 KiB
Diff
|
From 0299c9f31fb0c5794747a6a7f62c32abd9a49754 Mon Sep 17 00:00:00 2001
|
||
|
From: Hannes Reinecke <hare@suse.de>
|
||
|
Date: Thu, 10 Jul 2014 14:56:54 +0200
|
||
|
Subject: 95dasd_rules: Store all devices in commandline
|
||
|
|
||
|
'for_each_host_dev_and_slaves' would stop at the first found
|
||
|
device, so the cmdline() call would never list all required
|
||
|
devices. Use 'for_each_host_dev_and_slaves_all' instead and
|
||
|
filter out duplicates.
|
||
|
|
||
|
Signed-off-by: Hannes Reinecke <hare@suse.de>
|
||
|
---
|
||
|
modules.d/95dasd_rules/module-setup.sh | 4 ++--
|
||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/modules.d/95dasd_rules/module-setup.sh b/modules.d/95dasd_rules/module-setup.sh
|
||
|
index e4736a2..78a7a66 100755
|
||
|
--- a/modules.d/95dasd_rules/module-setup.sh
|
||
|
+++ b/modules.d/95dasd_rules/module-setup.sh
|
||
|
@@ -14,8 +14,8 @@ cmdline() {
|
||
|
return 0
|
||
|
}
|
||
|
[[ $hostonly ]] || [[ $mount_needs ]] && {
|
||
|
- for_each_host_dev_and_slaves is_dasd || return 255
|
||
|
- }
|
||
|
+ for_each_host_dev_and_slaves_all is_dasd || return 255
|
||
|
+ } | sort | uniq
|
||
|
}
|
||
|
|
||
|
# called by dracut
|
||
|
--
|
||
|
1.8.4.5
|
||
|
|