Blame SOURCES/0171-ifcfg-write-ifcfg.sh-include-net-lib.sh.patch

a56a5e
From 2a20064e44d14b2c84bf52fde9dfd3b43832a74b Mon Sep 17 00:00:00 2001
83bbb1
From: Harald Hoyer <harald@redhat.com>
83bbb1
Date: Fri, 16 May 2014 13:32:47 +0200
83bbb1
Subject: [PATCH] ifcfg/write-ifcfg.sh: include net-lib.sh
83bbb1
83bbb1
otherwise is_persistent_ethernet_name() is missing
83bbb1
83bbb1
(cherry picked from commit 8fa1afb65cef30d56ce2e141b0b594cf780120a1)
83bbb1
---
83bbb1
 modules.d/45ifcfg/write-ifcfg.sh | 2 ++
83bbb1
 1 file changed, 2 insertions(+)
83bbb1
83bbb1
diff --git a/modules.d/45ifcfg/write-ifcfg.sh b/modules.d/45ifcfg/write-ifcfg.sh
1755ca
index 457a9ac4..7f997a2a 100755
83bbb1
--- a/modules.d/45ifcfg/write-ifcfg.sh
83bbb1
+++ b/modules.d/45ifcfg/write-ifcfg.sh
83bbb1
@@ -3,6 +3,8 @@
83bbb1
 # ex: ts=8 sw=4 sts=4 et filetype=sh
83bbb1
 
83bbb1
 # NFS root might have reached here before /tmp/net.ifaces was written
83bbb1
+type is_persistent_ethernet_name >/dev/null 2>&1 || . /lib/net-lib.sh
83bbb1
+
83bbb1
 udevadm settle --timeout=30
83bbb1
 
83bbb1
 if [ -e /tmp/bridge.info ]; then