]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
ifcfg/write-ifcfg.sh: include net-lib.sh
authorHarald Hoyer <harald@redhat.com>
Fri, 16 May 2014 11:32:47 +0000 (13:32 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 16 May 2014 11:33:17 +0000 (13:33 +0200)
otherwise is_persistent_ethernet_name() is missing

modules.d/45ifcfg/write-ifcfg.sh

index 0fa5f40418b5a49f5bb6c17127649437667f2e8a..6756c3f8a709290f64d26d9243b55629480f12f4 100755 (executable)
@@ -3,6 +3,8 @@
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
 # NFS root might have reached here before /tmp/net.ifaces was written
+type is_persistent_ethernet_name >/dev/null 2>&1 || . /lib/net-lib.sh
+
 udevadm settle --timeout=30
 
 if [ -e /tmp/bridge.info ]; then