* [PATCH] [40network] Fix ifup.sh to always execute initqueue/online hook after bringing up an interface
@ 2013-04-11 15:41 Dennis Schridde
[not found] ` <1365694894-7926-1-git-send-email-devurandom-hi6Y0CQ0nG0@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Dennis Schridde @ 2013-04-11 15:41 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA; +Cc: Dennis Schridde
---
modules.d/40network/ifup.sh | 20 +++++++-------------
1 file changed, 7 insertions(+), 13 deletions(-)
diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh
index 526251f..13be22a 100755
--- a/modules.d/40network/ifup.sh
+++ b/modules.d/40network/ifup.sh
@@ -307,19 +307,13 @@ for p in $(getargs ip=); do
do_static ;;
esac
- case $autoconf in
- dhcp|on|any|dhcp6)
- ;;
- *)
- if [ $? -eq 0 ]; then
- setup_net $netif
- source_hook initqueue/online $netif
- if [ -z "$manualup" ]; then
- /sbin/netroot $netif
- fi
- fi
- ;;
- esac
+ if [ $? -eq 0 ]; then
+ setup_net $netif
+ source_hook initqueue/online $netif
+ if [ -z "$manualup" ]; then
+ /sbin/netroot $netif
+ fi
+ fi
break
done
--
1.8.1.5
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] [40network] Fix ifup.sh to always execute initqueue/online hook after bringing up an interface
[not found] ` <1365694894-7926-1-git-send-email-devurandom-hi6Y0CQ0nG0@public.gmane.org>
@ 2013-04-11 15:44 ` Harald Hoyer
[not found] ` <5166DA48.20803-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-04-11 15:45 ` Dennis Schridde
1 sibling, 1 reply; 6+ messages in thread
From: Harald Hoyer @ 2013-04-11 15:44 UTC (permalink / raw)
To: Dennis Schridde; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA
Am 11.04.2013 17:41, schrieb Dennis Schridde:
> ---
> modules.d/40network/ifup.sh | 20 +++++++-------------
> 1 file changed, 7 insertions(+), 13 deletions(-)
>
> diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh
> index 526251f..13be22a 100755
> --- a/modules.d/40network/ifup.sh
> +++ b/modules.d/40network/ifup.sh
> @@ -307,19 +307,13 @@ for p in $(getargs ip=); do
> do_static ;;
> esac
>
> - case $autoconf in
> - dhcp|on|any|dhcp6)
> - ;;
> - *)
> - if [ $? -eq 0 ]; then
> - setup_net $netif
> - source_hook initqueue/online $netif
> - if [ -z "$manualup" ]; then
> - /sbin/netroot $netif
> - fi
> - fi
> - ;;
> - esac
> + if [ $? -eq 0 ]; then
> + setup_net $netif
> + source_hook initqueue/online $netif
> + if [ -z "$manualup" ]; then
> + /sbin/netroot $netif
> + fi
> + fi
>
> break
> done
>
IIRC, that is done, as soon as the dhcp client gets an IP
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] [40network] Fix ifup.sh to always execute initqueue/online hook after bringing up an interface
[not found] ` <1365694894-7926-1-git-send-email-devurandom-hi6Y0CQ0nG0@public.gmane.org>
2013-04-11 15:44 ` Harald Hoyer
@ 2013-04-11 15:45 ` Dennis Schridde
1 sibling, 0 replies; 6+ messages in thread
From: Dennis Schridde @ 2013-04-11 15:45 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 295 bytes --]
Hello!
This fix is required for net_add_parse_vars in my "[PATCH 1/2] [40network] Add
variable parsing framework for network related variables" to work properly.
The online hook was previously not executed for dhcp enabled interfaces, which
resulted in my code not being executed.
--Dennis
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] [40network] Fix ifup.sh to always execute initqueue/online hook after bringing up an interface
[not found] ` <5166DA48.20803-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2013-04-11 16:13 ` Dennis Schridde
2013-04-30 19:25 ` Will Woods
0 siblings, 1 reply; 6+ messages in thread
From: Dennis Schridde @ 2013-04-11 16:13 UTC (permalink / raw)
To: Harald Hoyer; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 280 bytes --]
Am Donnerstag, 11. April 2013, 17:44:08 schrieb Harald Hoyer:
> IIRC, that is done, as soon as the dhcp client gets an IP
These patches are already a few months old, so dracut's behaviour may very
well have changed in the meantime. Where does what you describe happen?
--Dennis
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] [40network] Fix ifup.sh to always execute initqueue/online hook after bringing up an interface
2013-04-11 16:13 ` Dennis Schridde
@ 2013-04-30 19:25 ` Will Woods
[not found] ` <1367349915.2614.5.camel-s6BhOCdKmxS3M6m420IelR/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Will Woods @ 2013-04-30 19:25 UTC (permalink / raw)
To: Dennis Schridde; +Cc: Harald Hoyer, initramfs-u79uwXL29TY76Z2rM5mHXA
On Thu, 2013-04-11 at 18:13 +0200, Dennis Schridde wrote:
> Am Donnerstag, 11. April 2013, 17:44:08 schrieb Harald Hoyer:
> > IIRC, that is done, as soon as the dhcp client gets an IP
Technically it doesn't happen *immediately* - it adds a job to the
initqueue, and that job will run the initqueue/online hook.
> These patches are already a few months old, so dracut's behaviour may very
> well have changed in the meantime. Where does what you describe happen?
See 40network/dhclient-script.sh - when $reason is BOUND (i.e. initial
binding to a new address, as per dhclient-script(8)), it adds a job
named "setup_net_$netif.sh" to the initqueue.
Hope that helps,
-w
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] [40network] Fix ifup.sh to always execute initqueue/online hook after bringing up an interface
[not found] ` <1367349915.2614.5.camel-s6BhOCdKmxS3M6m420IelR/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
@ 2013-05-17 16:13 ` Dennis Schridde
0 siblings, 0 replies; 6+ messages in thread
From: Dennis Schridde @ 2013-05-17 16:13 UTC (permalink / raw)
To: Will Woods; +Cc: Harald Hoyer, initramfs-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 942 bytes --]
Hello!
Am Dienstag, 30. April 2013, 15:25:15 schrieb Will Woods:
> On Thu, 2013-04-11 at 18:13 +0200, Dennis Schridde wrote:
> > Am Donnerstag, 11. April 2013, 17:44:08 schrieb Harald Hoyer:
> > > IIRC, that is done, as soon as the dhcp client gets an IP
>
> Technically it doesn't happen *immediately* - it adds a job to the
> initqueue, and that job will run the initqueue/online hook.
>
> > These patches are already a few months old, so dracut's behaviour may very
> > well have changed in the meantime. Where does what you describe happen?
>
> See 40network/dhclient-script.sh - when $reason is BOUND (i.e. initial
> binding to a new address, as per dhclient-script(8)), it adds a job
> named "setup_net_$netif.sh" to the initqueue.
Thanks for that information!
I removed the patch and discovered some bugs and misconceptions about the
inner workings of dracut in my own code. It works now without the patch.
Best regards,
Dennis
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-05-17 16:13 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-11 15:41 [PATCH] [40network] Fix ifup.sh to always execute initqueue/online hook after bringing up an interface Dennis Schridde
[not found] ` <1365694894-7926-1-git-send-email-devurandom-hi6Y0CQ0nG0@public.gmane.org>
2013-04-11 15:44 ` Harald Hoyer
[not found] ` <5166DA48.20803-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-04-11 16:13 ` Dennis Schridde
2013-04-30 19:25 ` Will Woods
[not found] ` <1367349915.2614.5.camel-s6BhOCdKmxS3M6m420IelR/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
2013-05-17 16:13 ` Dennis Schridde
2013-04-11 15:45 ` Dennis Schridde
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.