File 0091-dracut-biosdevname-In-SUSE-biosdevname-package-is-in.patch of Package dracut.13287

From edfae68d9a9af81cd1ff230b72b9c320d4c58e82 Mon Sep 17 00:00:00 2001
From: Thomas Renninger <trenn@suse.de>
Date: Tue, 1 Jul 2014 13:53:57 +0200
Subject: dracut: biosdevname: In SUSE biosdevname package is installed on
 relevant platforms

all others should not add biosdevname on purpose. Do not complain about it.


Signed-off-by: Thomas Renninger <trenn@suse.de>
---
 modules.d/97biosdevname/module-setup.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: dracut-042/modules.d/97biosdevname/module-setup.sh
===================================================================
--- dracut-042.orig/modules.d/97biosdevname/module-setup.sh	2015-06-11 17:39:47.000000000 +0200
+++ dracut-042/modules.d/97biosdevname/module-setup.sh	2015-06-24 18:02:13.557610904 +0200
@@ -3,7 +3,8 @@
 # called by dracut
 check() {
     [[ "$mount_needs" ]] && return 1
-    require_binaries biosdevname || return 1
+    # Include biosdevname if the binary is installed
+    type -P biosdevname >/dev/null || return 1
     return 0
 }
 
openSUSE Build Service is sponsored by