From: Khem Raj <raj.khem@gmail.com>
To: Stefan Agner <stefan@agner.ch>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] busybox: Fix busybox-init on non-tty consoles
Date: Sun, 7 Aug 2016 20:26:02 -0700 [thread overview]
Message-ID: <739DEE3D-E55E-4F24-98B3-393D609C7C3E@gmail.com> (raw)
In-Reply-To: <20160808013058.8636-1-stefan@agner.ch>
[-- Attachment #1: Type: text/plain, Size: 1781 bytes --]
> On Aug 7, 2016, at 6:30 PM, Stefan Agner <stefan@agner.ch> wrote:
>
> When using non-tty consoles (e.g. VirtIO console /dev/hvc0) the
> current init system fails with:
> process '/sbin/getty 115200 hvc0' (pid 545) exited. Scheduling for restart.
> can't open /dev/ttyhvc0: No such file or directory
>
> The first field needs to be a valid device. The BusyBox inittab example
> explains as follows:
> "<id>: WARNING: This field has a non-traditional meaning for BusyBox init!
>
> The id field is used by BusyBox init to specify the controlling tty for
> the specified process to run on. The contents of this field are
> appended to "/dev/" and used as-is."
>
> Signed-off-by: Stefan Agner <stefan@agner.ch>
> ---
> meta/recipes-core/busybox/busybox.inc | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc
> index 5e91a26..4765c28 100644
> --- a/meta/recipes-core/busybox/busybox.inc
> +++ b/meta/recipes-core/busybox/busybox.inc
> @@ -286,8 +286,8 @@ do_install () {
> for i in $tmp
> do
> j=`echo ${i} | sed s/\;/\ /g`
> - label=`echo ${i} | sed -e 's/tty//' -e 's/^.*;//' -e 's/;.*//'`
> - echo "tty$label::respawn:${base_sbindir}/getty ${j}" >> ${D}${sysconfdir}/inittab
> + id=`echo ${i} | -e 's/^.*;//' -e 's/;.*//‘`
what cmd is this piping it to now ?
> + echo "$id::respawn:${base_sbindir}/getty ${j}" >> ${D}${sysconfdir}/inittab
> done
> fi
> fi
> --
> 2.9.0
>
[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]
prev parent reply other threads:[~2016-08-08 3:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-08 1:30 [PATCH] busybox: Fix busybox-init on non-tty consoles Stefan Agner
2016-08-08 3:26 ` Khem Raj [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=739DEE3D-E55E-4F24-98B3-393D609C7C3E@gmail.com \
--to=raj.khem@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=stefan@agner.ch \
/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.