From: Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Cong Wang <xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: dracut options for installing files and drivers
Date: Mon, 14 May 2012 17:39:16 +0800 [thread overview]
Message-ID: <4FB0D2C4.6030204@redhat.com> (raw)
In-Reply-To: <joq7ki$u50$2@dough.gmane.org>
On 05/14/2012 02:10 PM, Cong Wang wrote:
>> Yeah...
>>
>> % sudo dracut --add-drivers "no-such-module" -I "/no/such/file" -f test.img
>> E: ssh interactive mode need option --ctty!
>> F: Failed to install /no/such/file
>> % echo $?
>> 1
>>
>> Maybe the following untested patch could fix this??
Hi, what version of dracut did you use? master branch '-I no/such/file'
will not fail... Seems there it is changed to 'dracut -o' in some commit.
Also `./dracut.sh -l --add-drivers "no-such-module" -f test.img` return
0 during my test.
>>
>
> A better version:
>
> ---->
>
> diff --git a/dracut-functions.sh b/dracut-functions.sh
> index 8256e02..148dd19 100755
> --- a/dracut-functions.sh
> +++ b/dracut-functions.sh
> @@ -1168,11 +1168,17 @@ instmods() {
> local _ret=0 _mod _mpargs
> if (($# == 0)); then # filenames from stdin
> while read _mod; do
> - inst1mod "${_mod%.ko*}"
> + inst1mod "${_mod%.ko*}" || {
> + dfatal "Failed to install ${_mod%.ko*}"
> + return 1
> + }
> done
> fi
> while (($# > 0)); do # filenames as arguments
> - inst1mod ${1%.ko*}
> + inst1mod ${1%.ko*} || {
> + dfatal "Failed to install ${1%.ko*}"
> + return 1
> + }
> shift
> done
> return $_ret
>
> --
> 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
next prev parent reply other threads:[~2012-05-14 9:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-09 7:35 dracut options for installing files and drivers Dave Young
[not found] ` <4FAA1E44.2090006-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-05-09 12:40 ` Harald Hoyer
[not found] ` <4FAA65B7.9040209-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-05-10 2:10 ` Dave Young
[not found] ` <4FAB2379.2050504-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-05-10 8:19 ` Dave Young
2012-05-14 6:01 ` Cong Wang
2012-05-14 6:10 ` Cong Wang
2012-05-14 9:39 ` Dave Young [this message]
2012-05-15 3:00 ` Cong Wang
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=4FB0D2C4.6030204@redhat.com \
--to=dyoung-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@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