Blame 0024-ifcfg-write-ifcfg.sh-include-net-lib.sh.patch

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