[Patch] dracut: write-ifcfg.sh: load net-lib.sh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When kdump boots the second kernel, it complains:

dracut-pre-pivot[429]: //lib/dracut/hooks/pre-pivot/85-write-ifcfg.sh: line 168: is_persistent_ethernet_name: command not found 

is_persistent_ethernet_name is defined in net-lib.sh, but write-ifcfg.sh
doesn't load that library.  Solution is to load the library.

Tested that this fix eliminates the error message.

Signed-off-by: Marc Milgram <mmilgram@xxxxxxxxxx>
---
diff --git a/modules.d/45ifcfg/write-ifcfg.sh b/modules.d/45ifcfg/write-ifcfg.sh
index 5de2e90..e30749b 100755
--- a/modules.d/45ifcfg/write-ifcfg.sh
+++ b/modules.d/45ifcfg/write-ifcfg.sh
@@ -5,6 +5,8 @@
 # NFS root might have reached here before /tmp/net.ifaces was written
 udevadm settle --timeout=30
 
+command -v is_persistent_ethernet_name || . /lib/net-lib.sh
+
 if [ -e /tmp/bridge.info ]; then
     . /tmp/bridge.info
 fi
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux