diff options
Diffstat (limited to '0049-95znet-Make-installation-optional.patch')
-rw-r--r-- | 0049-95znet-Make-installation-optional.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/0049-95znet-Make-installation-optional.patch b/0049-95znet-Make-installation-optional.patch new file mode 100644 index 0000000..52e74f1 --- /dev/null +++ b/0049-95znet-Make-installation-optional.patch @@ -0,0 +1,25 @@ +From dda7ae7dcdde7f9a00bbaebc7df7fbd7ed2f8ff0 Mon Sep 17 00:00:00 2001 +From: Hannes Reinecke <hare@suse.de> +Date: Fri, 29 Nov 2013 13:13:46 +0100 +Subject: [PATCH] 95znet: Make installation optional + +znet_cio_free is a RedHat-specific tool, so do not install this +module on systems where the program is missing. + +Signed-off-by: Hannes Reinecke <hare@suse.de> +--- + modules.d/95znet/module-setup.sh | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/modules.d/95znet/module-setup.sh b/modules.d/95znet/module-setup.sh +index 4c211a9..5012b77 100755 +--- a/modules.d/95znet/module-setup.sh ++++ b/modules.d/95znet/module-setup.sh +@@ -5,6 +5,7 @@ + # called by dracut + check() { + arch=$(uname -m) ++ [ -z /sbin/znet_cio_free ] || return 1 + [ "$arch" = "s390" -o "$arch" = "s390x" ] || return 1 + + return 0 |