Re: [PATCH 1/2]dhclient initqueue hook fix

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

 



On 07/09/2012 02:56 PM, Dave Young wrote:

> 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.


Hi, harald. Could you give comment for this patch?

This might be only related to manually bring up network. I'm not sure
though.

> 
> 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



-- 
Thanks
Dave
--
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