mkinitrd unification across distributions
 help / color / mirror / Atom feed
From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Thomas Renninger <trenn-l3A5Bk7waGM@public.gmane.org>,
	initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] dracut: Do not stop installing drivers if one fails
Date: Wed, 28 May 2014 13:46:06 +0200	[thread overview]
Message-ID: <5385CC7E.80106@redhat.com> (raw)
In-Reply-To: <3223446.4k6qIrFfuT@skinner>

On 07.05.2014 17:58, Thomas Renninger wrote:
> --add-drivers and --filesystems kernel drivers are added via:
> instmods -c
> The check option makes the function return if one driver could not get
> installed without trying to install further drivers which is bad.
> 
> The user is still informed ($_silent is by default no), but all modules
> passed to instmods are tried to be loaded, even if one fails.
> 
> Signed-off-by: Thomas Renninger <trenn-l3A5Bk7waGM@public.gmane.org>
> 
> Index: dracut-037/dracut-functions.sh
> ===================================================================
> --- dracut-037.orig/dracut-functions.sh
> +++ dracut-037/dracut-functions.sh
> @@ -1689,18 +1689,16 @@ instmods() {
>          if (($# == 0)); then  # filenames from stdin
>              while read _mod; do
>                  inst1mod "${_mod%.ko*}" || {
> -                    if [[ "$_check" == "yes" ]]; then
> -                        [[ "$_silent" == "no" ]] && dfatal "Failed to install module $_mod"
> -                        return 1
> +                    if [[ "$_check" == "yes" ]] && [[ "$_silent" == "no" ]]; then
> +                        dfatal "Failed to install module $_mod"
>                      fi
>                  }
>              done
>          fi
>          while (($# > 0)); do  # filenames as arguments
>              inst1mod ${1%.ko*} || {
> -                if [[ "$_check" == "yes" ]]; then
> -                    [[ "$_silent" == "no" ]] && dfatal "Failed to install module $1"
> -                    return 1
> +                if [[ "$_check" == "yes" ]] && [[ "$_silent" == "no" ]]; then
> +                    dfatal "Failed to install module $1"
>                  fi
>              }
>              shift
> 
> --
> 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
> 

Well that's the purpose of "-c". Maybe we should better fix the call with "-c"
and/or react to the return code.

      reply	other threads:[~2014-05-28 11:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-07 15:58 [PATCH] dracut: Do not stop installing drivers if one fails Thomas Renninger
2014-05-28 11:46 ` Harald Hoyer [this message]

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=5385CC7E.80106@redhat.com \
    --to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=trenn-l3A5Bk7waGM@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