From: Seewer Philippe <philippe.seewer-omB+W0Dpw2o@public.gmane.org>
To: David Dillow <dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org>
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [RFC ONLY 1/5] netroot: remove unused hook
Date: Mon, 6 Jul 2009 14:56:17 +0200 [thread overview]
Message-ID: <4A51F471.7040100@bfh.ch> (raw)
In-Reply-To: <bd4d79bc048ad3944156f86eafb62cf4bc29b1f9.1246656269.git.dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org>
David Dillow wrote:
> The netroot hook is no longer used.
> ---
> This is a left over from before Philippe's multinic work.
I intentionally left the hook in there to give other modules the option
to add a hook to between successful and completed interface
configuration and actual mount/login calls.
Most of the stuff that I was thinking about that could go in there can
now go inside pre-mount. But if someone needs port authentication or
similar stuff, this needs to run between interface configuration and
mount/login. I think the hook should stay.
>
> dracut | 2 +-
> modules.d/40network/netroot | 3 ---
> 2 files changed, 1 insertions(+), 4 deletions(-)
>
> diff --git a/dracut b/dracut
> index f10af83..c71cc63 100755
> --- a/dracut
> +++ b/dracut
> @@ -102,7 +102,7 @@ if [[ -f $outfile && ! $force ]]; then
> exit 1
> fi
>
> -hookdirs="cmdline pre-udev pre-trigger netroot pre-mount pre-pivot mount emergency"
> +hookdirs="cmdline pre-udev pre-trigger pre-mount pre-pivot mount emergency"
>
> readonly initdir=$(mktemp -d -t initramfs.XXXXXX)
> trap 'rm -rf "$initdir"' 0 # clean up after ourselves no matter how we die.
> diff --git a/modules.d/40network/netroot b/modules.d/40network/netroot
> index f719d93..645bbba 100755
> --- a/modules.d/40network/netroot
> +++ b/modules.d/40network/netroot
> @@ -92,9 +92,6 @@ done
> [ -e /tmp/net.$netif.hostname ] && . /tmp/net.$netif.hostname
> [ -e /tmp/net.$netif.resolv.conf ] && cp -f /tmp/net.$netif.resolv.conf /etc/resolv.conf
>
> -# Source netroot hooks before we start the handler
> -source_all netroot
> -
> # Run the handler; don't store the root, it may change from device to device
> # XXX other variables to export?
> if $handler $netif $netroot $NEWROOT; then
--
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
next prev parent reply other threads:[~2009-07-06 12:56 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-03 21:40 [RFC ONLY 0/5] Move argument validation to root handlers David Dillow
[not found] ` <cover.1246656269.git.dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org>
2009-07-03 21:40 ` [RFC ONLY 1/5] netroot: remove unused hook David Dillow
[not found] ` <bd4d79bc048ad3944156f86eafb62cf4bc29b1f9.1246656269.git.dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org>
2009-07-06 12:56 ` Seewer Philippe [this message]
2009-07-03 21:40 ` [RFC ONLY 2/5] netroot: remove unhelpful argument checks David Dillow
[not found] ` <0535c73bd25fdcaa9bf4de0bc4b041b74d11e547.1246656269.git.dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org>
2009-07-06 13:00 ` Seewer Philippe
2009-07-03 21:40 ` [RFC ONLY 3/5] netroot: remove netif from handler invocation David Dillow
[not found] ` <44494af931ad839908cb4542f7c35ae59a4ef65e.1246656269.git.dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org>
2009-07-06 13:56 ` Seewer Philippe
[not found] ` <4A520291.7010203-omB+W0Dpw2o@public.gmane.org>
2009-07-06 14:43 ` David Dillow
[not found] ` <1246891382.24010.6.camel-FqX9LgGZnHWDB2HL1qBt2PIbXMQ5te18@public.gmane.org>
2009-07-06 15:02 ` Seewer Philippe
[not found] ` <4A521208.2050605-omB+W0Dpw2o@public.gmane.org>
2009-07-06 16:06 ` David Dillow
[not found] ` <1246896365.24010.14.camel-FqX9LgGZnHWDB2HL1qBt2PIbXMQ5te18@public.gmane.org>
2009-07-07 8:10 ` Seewer Philippe
2009-07-03 21:40 ` [RFC ONLY 4/5] netroot: move dracut syntax validation to root handlers David Dillow
[not found] ` <d1aed501ae771d769efcd370f47184f12b9800d6.1246656269.git.dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org>
2009-07-07 7:47 ` Seewer Philippe
[not found] ` <4A52FD93.3000406-omB+W0Dpw2o@public.gmane.org>
2009-07-07 14:57 ` David Dillow
2009-07-03 21:40 ` [RFC ONLY 5/5] PROOF-OF-CONCEPT: wait for spanning tree timeout via arping David Dillow
[not found] ` <8cf3d034e4611fbe661d4585fbfd1a03a6fd094b.1246656269.git.dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org>
2009-07-07 8:08 ` Seewer Philippe
[not found] ` <4A530297.1020906-omB+W0Dpw2o@public.gmane.org>
2009-07-07 15:09 ` David Dillow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A51F471.7040100@bfh.ch \
--to=philippe.seewer-omb+w0dpw2o@public.gmane.org \
--cc=dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org \
--cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox