File 0218-40network-allow-persistent-interface-names.patch of Package dracut.12460

From 47831cf386dd4d49c2b56f3bbbaf719348b9862f Mon Sep 17 00:00:00 2001
From: Hannes Reinecke <hare@suse.de>
Date: Wed, 24 Aug 2016 15:12:52 +0200
Subject: [PATCH] 40network: allow persistent interface names

We are using persistent interface names even for kernel device
names on SLES, so we should be removing the warning.

References: bsc#995284

Signed-off-by: Hannes Reinecke <hare@suse.com>
---
 modules.d/40network/net-lib.sh | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/modules.d/40network/net-lib.sh b/modules.d/40network/net-lib.sh
index 0a77d4b..d17209a 100755
--- a/modules.d/40network/net-lib.sh
+++ b/modules.d/40network/net-lib.sh
@@ -573,15 +573,6 @@ parse_ifname_opts() {
             ;;
     esac
 
-    case $ifname_if in
-        eth[0-9]|eth[0-9][0-9]|eth[0-9][0-9][0-9]|eth[0-9][0-9][0-9][0-9])
-            warn "ifname=$ifname_if uses the kernel name space for interfaces"
-            warn "This can fail for multiple network interfaces and is discouraged!"
-            warn "Please use a custom name like \"netboot\" or \"bluesocket\""
-            warn "or use biosdevname and no ifname= at all."
-            ;;
-    esac
-
 }
 
 # some network driver need long time to initialize, wait before it's ready.
-- 
2.6.6

openSUSE Build Service is sponsored by