All of lore.kernel.org
 help / color / mirror / Atom feed
From: Seewer Philippe <philippe.seewer-omB+W0Dpw2o@public.gmane.org>
To: "Amadeusz Żołnowski" <aidecoe-2qtfh70TtYba5EbDDlwbIw@public.gmane.org>
Cc: "initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH 6/9] 40network: install dhclient, brctl and ifenslave optionally
Date: Fri, 25 Mar 2011 16:30:40 +0100	[thread overview]
Message-ID: <4D8CB520.60504@bfh.ch> (raw)
In-Reply-To: <1301065012-16356-6-git-send-email-aidecoe-2qtfh70TtYba5EbDDlwbIw@public.gmane.org>



On 03/25/2011 03:56 PM, Amadeusz ¯o³nowski wrote:
> Warning given by check() function in case if any of those binaries
> doesn't exist was removed, because it's produces by "dracut_install -o"
> later.

I'll have to object to this, sorry. The current network implementation 
does not check if these binaries are there and throws errors if ip=dhcp 
is provided and no dhclient is available.

> ---
>   modules.d/40network/module-setup.sh |    9 ++-------
>   1 files changed, 2 insertions(+), 7 deletions(-)
>
> diff --git a/modules.d/40network/module-setup.sh b/modules.d/40network/module-setup.sh
> index 59f358f..f32745c 100755
> --- a/modules.d/40network/module-setup.sh
> +++ b/modules.d/40network/module-setup.sh
> @@ -11,12 +11,6 @@ check() {
>               return 1
>           fi
>       done
> -    for program in dhclient brctl ifenslave tr; do
> -        if ! type -P $program>/dev/null; then
> -            dwarn "Could not find program \"$program\" it might be required " \
> -                "by network."
> -        fi
> -    done
>
>       return 255
>   }
> @@ -48,7 +42,8 @@ installkernel() {
>   }
>
>   install() {
> -    dracut_install ip dhclient brctl arping ifenslave tr
> +    dracut_install ip arping tr
> +    dracut_install -o dhclient brctl ifenslave
>       inst "$moddir/ifup" "/sbin/ifup"
>       inst "$moddir/netroot" "/sbin/netroot"
>       inst "$moddir/dhclient-script" "/sbin/dhclient-script"

  parent reply	other threads:[~2011-03-25 15:30 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-25 14:56 [PATCH 1/9] dracut-logger: 'user' facility for build-time and 'daemon' for boot-time Amadeusz Żołnowski
     [not found] ` <1301065012-16356-1-git-send-email-aidecoe-2qtfh70TtYba5EbDDlwbIw@public.gmane.org>
2011-03-25 14:56   ` [PATCH 2/9] dracut: when stdloglvl not set defaulted to 0 - should be 4 Amadeusz Żołnowski
     [not found]     ` <1301065012-16356-2-git-send-email-aidecoe-2qtfh70TtYba5EbDDlwbIw@public.gmane.org>
2011-03-25 14:56       ` [PATCH 3/9] dracut-functions: code formatting corrected Amadeusz Żołnowski
     [not found]         ` <1301065012-16356-3-git-send-email-aidecoe-2qtfh70TtYba5EbDDlwbIw@public.gmane.org>
2011-03-25 14:56           ` [PATCH 4/9] dracut-functions: logging functions adjusted to dracut-logger Amadeusz Żołnowski
     [not found]             ` <1301065012-16356-4-git-send-email-aidecoe-2qtfh70TtYba5EbDDlwbIw@public.gmane.org>
2011-03-25 14:56               ` [PATCH 5/9] modules.d: " Amadeusz Żołnowski
     [not found]                 ` <1301065012-16356-5-git-send-email-aidecoe-2qtfh70TtYba5EbDDlwbIw@public.gmane.org>
2011-03-25 14:56                   ` [PATCH 6/9] 40network: install dhclient, brctl and ifenslave optionally Amadeusz Żołnowski
     [not found]                     ` <1301065012-16356-6-git-send-email-aidecoe-2qtfh70TtYba5EbDDlwbIw@public.gmane.org>
2011-03-25 14:56                       ` [PATCH 7/9] dracut-logger: /dev/log is socket, not character device Amadeusz Żołnowski
     [not found]                         ` <1301065012-16356-7-git-send-email-aidecoe-2qtfh70TtYba5EbDDlwbIw@public.gmane.org>
2011-03-25 14:56                           ` [PATCH 8/9] dracut: new option: -M, --show-modules - lists modules on build Amadeusz Żołnowski
     [not found]                             ` <1301065012-16356-8-git-send-email-aidecoe-2qtfh70TtYba5EbDDlwbIw@public.gmane.org>
2011-03-25 14:56                               ` [PATCH 9/9] dracut.conf.5.xml, dracut.8.xml: logging options and -M documented Amadeusz Żołnowski
2011-03-25 15:30                       ` Seewer Philippe [this message]
     [not found]                         ` <4D8CB520.60504-omB+W0Dpw2o@public.gmane.org>
2011-03-28  9:40                           ` [PATCH 6/9] 40network: install dhclient, brctl and ifenslave optionally Amadeusz Żołnowski
2011-03-28  9:51                             ` Seewer Philippe

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=4D8CB520.60504@bfh.ch \
    --to=philippe.seewer-omb+w0dpw2o@public.gmane.org \
    --cc=aidecoe-2qtfh70TtYba5EbDDlwbIw@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 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.