dhclient initqueue hook fix setup_net is scheduled in initqueue, sometimes it does not get chance to run So the default route will not be set properly Add a check in initqueue/finished to resolve this issue. Signed-off-by: Dave Young <dyoung@xxxxxxxxxx> --- modules.d/40network/dhclient-script.sh | 2 ++ 1 file changed, 2 insertions(+) --- dracut.orig/modules.d/40network/dhclient-script.sh +++ dracut/modules.d/40network/dhclient-script.sh @@ -81,9 +81,11 @@ case $reason in echo "setup_net $netif" echo "source_hook initqueue/online $netif" [ -e /tmp/net.$netif.manualup ] || echo "/sbin/netroot $netif" + echo "> /tmp/setup_net_$netif.ok" echo "rm -f $hookdir/initqueue/setup_net_$netif.sh" } > $hookdir/initqueue/setup_net_$netif.sh + echo "[ -f /tmp/setup_net_$netif.ok ]" > $hookdir/initqueue/finished/dhclient-$netif.sh >/tmp/net.$netif.up ;; *) echo "dhcp: $reason";; -- 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