From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Will Woods <wwoods-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] fix "execvp: No such file or directory" in emergency_shell
Date: Thu, 15 Mar 2012 11:23:30 +0100 [thread overview]
Message-ID: <4F61C322.3080403@redhat.com> (raw)
In-Reply-To: <1331759380-23807-1-git-send-email-wwoods-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Am 14.03.2012 22:09, schrieb Will Woods:
> Older versions of setsid emit this message on stderr if you try to run
> "setsid --help". Redirect it to /dev/null.
> ---
> modules.d/99base/dracut-lib.sh | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh
> index a6c4e24..f0d426c 100755
> --- a/modules.d/99base/dracut-lib.sh
> +++ b/modules.d/99base/dracut-lib.sh
> @@ -814,7 +814,7 @@ emergency_shell()
> _ctty=/dev/$_ctty
> fi
> [ -c "$_ctty" ] || _ctty=/dev/tty1
> - strstr "$(setsid --help)" "control" && CTTY="-c"
> + strstr "$(setsid --help 2>/dev/null)" "control" && CTTY="-c"
> setsid $CTTY /bin/sh -i -l 0<$_ctty 1>$_ctty 2>&1
> else
> warn "Boot has failed. To debug this issue add \"rdshell\" to the kernel command line."
pushed
prev parent reply other threads:[~2012-03-15 10:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-14 21:09 [PATCH] fix "execvp: No such file or directory" in emergency_shell Will Woods
[not found] ` <1331759380-23807-1-git-send-email-wwoods-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-03-15 10:23 ` 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=4F61C322.3080403@redhat.com \
--to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=wwoods-H+wXaHxf7aLQT0dZR+AlfA@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