Blame 0049-95znet-Make-installation-optional.patch
|
Harald Hoyer |
4734ec |
From dda7ae7dcdde7f9a00bbaebc7df7fbd7ed2f8ff0 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:46 +0100
|
|
Harald Hoyer |
4734ec |
Subject: [PATCH] 95znet: Make installation optional
|
|
Harald Hoyer |
4734ec |
|
|
Harald Hoyer |
4734ec |
znet_cio_free is a RedHat-specific tool, so do not install this
|
|
Harald Hoyer |
4734ec |
module on systems where the program is missing.
|
|
Harald Hoyer |
4734ec |
|
|
Harald Hoyer |
4734ec |
Signed-off-by: Hannes Reinecke <hare@suse.de>
|
|
Harald Hoyer |
4734ec |
---
|
|
Harald Hoyer |
4734ec |
modules.d/95znet/module-setup.sh | 1 +
|
|
Harald Hoyer |
4734ec |
1 file changed, 1 insertion(+)
|
|
Harald Hoyer |
4734ec |
|
|
Harald Hoyer |
4734ec |
diff --git a/modules.d/95znet/module-setup.sh b/modules.d/95znet/module-setup.sh
|
|
Harald Hoyer |
4734ec |
index 4c211a9..5012b77 100755
|
|
Harald Hoyer |
4734ec |
--- a/modules.d/95znet/module-setup.sh
|
|
Harald Hoyer |
4734ec |
+++ b/modules.d/95znet/module-setup.sh
|
|
Harald Hoyer |
4734ec |
@@ -5,6 +5,7 @@
|
|
Harald Hoyer |
4734ec |
# called by dracut
|
|
Harald Hoyer |
4734ec |
check() {
|
|
Harald Hoyer |
4734ec |
arch=$(uname -m)
|
|
Harald Hoyer |
4734ec |
+ [ -z /sbin/znet_cio_free ] || return 1
|
|
Harald Hoyer |
4734ec |
[ "$arch" = "s390" -o "$arch" = "s390x" ] || return 1
|
|
Harald Hoyer |
4734ec |
|
|
Harald Hoyer |
4734ec |
return 0
|