Blame 0046-95dasd-Only-install-module-if-normalize_dasd_arg-is-.patch
|
Harald Hoyer |
4734ec |
From 07cacb245547066c7b6a335509a0ed77ad227372 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
4734ec |
From: Hannes Reinecke <hare@suse.de>
|
|
Harald Hoyer |
4734ec |
Date: Fri, 29 Nov 2013 13:13:43 +0100
|
|
Harald Hoyer |
4734ec |
Subject: [PATCH] 95dasd: Only install module if normalize_dasd_arg is present
|
|
Harald Hoyer |
4734ec |
|
|
Harald Hoyer |
4734ec |
normalize_dasd_arg is a RedHat specific script, so no point
|
|
Harald Hoyer |
4734ec |
installing this module if the script isn't present.
|
|
Harald Hoyer |
4734ec |
|
|
Harald Hoyer |
4734ec |
Signed-off-by: Hannes Reinecke <hare@suse.de>
|
|
Harald Hoyer |
4734ec |
---
|
|
Harald Hoyer |
4734ec |
modules.d/95dasd/module-setup.sh | 1 +
|
|
Harald Hoyer |
4734ec |
1 file changed, 1 insertion(+)
|
|
Harald Hoyer |
4734ec |
|
|
Harald Hoyer |
4734ec |
diff --git a/modules.d/95dasd/module-setup.sh b/modules.d/95dasd/module-setup.sh
|
|
Harald Hoyer |
4734ec |
index 16207bc..9c93d40 100755
|
|
Harald Hoyer |
4734ec |
--- a/modules.d/95dasd/module-setup.sh
|
|
Harald Hoyer |
4734ec |
+++ b/modules.d/95dasd/module-setup.sh
|
|
Harald Hoyer |
4734ec |
@@ -5,6 +5,7 @@
|
|
Harald Hoyer |
4734ec |
# called by dracut
|
|
Harald Hoyer |
4734ec |
check() {
|
|
Harald Hoyer |
4734ec |
local _arch=$(uname -m)
|
|
Harald Hoyer |
4734ec |
+ [ -x /sbin/normalize_dasd_arg ] || return 1
|
|
Harald Hoyer |
4734ec |
[ "$_arch" = "s390" -o "$_arch" = "s390x" ] || return 1
|
|
Harald Hoyer |
4734ec |
return 0
|
|
Harald Hoyer |
4734ec |
}
|