All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2]dhclient initqueue hook fix
@ 2012-07-09  6:56 Dave Young
       [not found] ` <20120709065635.GA14094-je1gSBvt1Td3da3rpXeqgR/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Dave Young @ 2012-07-09  6:56 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA, harald-H+wXaHxf7aLQT0dZR+AlfA

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-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
---
 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";;

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2]dhclient initqueue hook fix
       [not found] ` <20120709065635.GA14094-je1gSBvt1Td3da3rpXeqgR/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
@ 2012-07-09  7:01   ` Dave Young
  2012-07-11  8:14   ` Dave Young
  1 sibling, 0 replies; 5+ messages in thread
From: Dave Young @ 2012-07-09  7:01 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA, harald-H+wXaHxf7aLQT0dZR+AlfA

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 review this patch?
I sent it several days ago, it went into my mailbox but seems it did not
get in the list archive..


> 
> Signed-off-by: Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> ---
>  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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
Thanks
Dave

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2]dhclient initqueue hook fix
       [not found] ` <20120709065635.GA14094-je1gSBvt1Td3da3rpXeqgR/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
  2012-07-09  7:01   ` Dave Young
@ 2012-07-11  8:14   ` Dave Young
       [not found]     ` <4FFD35F9.8040602-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  1 sibling, 1 reply; 5+ messages in thread
From: Dave Young @ 2012-07-11  8:14 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA, harald-H+wXaHxf7aLQT0dZR+AlfA

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-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> ---
>  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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
Thanks
Dave

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2]dhclient initqueue hook fix
       [not found]     ` <4FFD35F9.8040602-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2012-07-11  9:55       ` Harald Hoyer
       [not found]         ` <4FFD4D95.3060500-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Harald Hoyer @ 2012-07-11  9:55 UTC (permalink / raw)
  To: Dave Young; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA

Am 11.07.2012 10:14, schrieb Dave Young:
> 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.


Already pushed to upstream git

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2]dhclient initqueue hook fix
       [not found]         ` <4FFD4D95.3060500-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2012-07-12  3:30           ` Dave Young
  0 siblings, 0 replies; 5+ messages in thread
From: Dave Young @ 2012-07-12  3:30 UTC (permalink / raw)
  To: Harald Hoyer; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA

On 07/11/2012 05:55 PM, Harald Hoyer wrote:

> Am 11.07.2012 10:14, schrieb Dave Young:
>> 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.
> 
> 
> Already pushed to upstream git


Thanks, should check the git before ask..

-- 
Thanks
Dave

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-07-12  3:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-09  6:56 [PATCH 1/2]dhclient initqueue hook fix Dave Young
     [not found] ` <20120709065635.GA14094-je1gSBvt1Td3da3rpXeqgR/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
2012-07-09  7:01   ` Dave Young
2012-07-11  8:14   ` Dave Young
     [not found]     ` <4FFD35F9.8040602-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-07-11  9:55       ` Harald Hoyer
     [not found]         ` <4FFD4D95.3060500-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-07-12  3:30           ` Dave Young

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.