* [PATCH] Add getty to inittab for login on Xen serial console.
@ 2013-11-06 2:54 Philip Tricca
2013-11-07 20:32 ` Bruce Ashfield
0 siblings, 1 reply; 4+ messages in thread
From: Philip Tricca @ 2013-11-06 2:54 UTC (permalink / raw)
To: meta-virtualization
It's not pretty but the mechanisms in sysvinit-inittab assume the
console device name is tty*. The Xen console device doesn't meet
this criteria.
Signed-off-by: Philip Tricca <flihp@twobit.us>
---
recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend | 7 +++++++
1 file changed, 7 insertions(+)
create mode 100644 recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
diff --git a/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend b/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
new file mode 100644
index 0000000..2edbedf
--- /dev/null
+++ b/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
@@ -0,0 +1,7 @@
+do_install_append() {
+ echo "${DISTRO_FEATURES}" | grep -q 'xen'
+ if [ $? -eq 0 ]; then
+ echo "" >> ${D}${sysconfdir}/inittab
+ echo "X0:12345:respawn:/sbin/getty 115200 hvc0" >> ${D}${sysconfdir}/inittab
+ fi
+}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] Add getty to inittab for login on Xen serial console.
2013-11-06 2:54 [PATCH] Add getty to inittab for login on Xen serial console Philip Tricca
@ 2013-11-07 20:32 ` Bruce Ashfield
2013-11-08 4:07 ` Chris Patterson
0 siblings, 1 reply; 4+ messages in thread
From: Bruce Ashfield @ 2013-11-07 20:32 UTC (permalink / raw)
To: Philip Tricca; +Cc: meta-virtualization
On Tue, Nov 5, 2013 at 9:54 PM, Philip Tricca <flihp@twobit.us> wrote:
> It's not pretty but the mechanisms in sysvinit-inittab assume the
> console device name is tty*. The Xen console device doesn't meet
> this criteria.
merged (with a minor tweak to the shortlog).
Bruce
>
> Signed-off-by: Philip Tricca <flihp@twobit.us>
> ---
> recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend | 7 +++++++
> 1 file changed, 7 insertions(+)
> create mode 100644 recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
>
> diff --git a/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend b/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
> new file mode 100644
> index 0000000..2edbedf
> --- /dev/null
> +++ b/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
> @@ -0,0 +1,7 @@
> +do_install_append() {
> + echo "${DISTRO_FEATURES}" | grep -q 'xen'
> + if [ $? -eq 0 ]; then
> + echo "" >> ${D}${sysconfdir}/inittab
> + echo "X0:12345:respawn:/sbin/getty 115200 hvc0" >> ${D}${sysconfdir}/inittab
> + fi
> +}
> --
> 1.7.10.4
>
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
--
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Add getty to inittab for login on Xen serial console.
2013-11-07 20:32 ` Bruce Ashfield
@ 2013-11-08 4:07 ` Chris Patterson
2013-11-08 13:23 ` Philip Tricca
0 siblings, 1 reply; 4+ messages in thread
From: Chris Patterson @ 2013-11-08 4:07 UTC (permalink / raw)
To: Bruce Ashfield; +Cc: meta-virtualization
[-- Attachment #1: Type: text/plain, Size: 1796 bytes --]
Thanks, handy!
On Thu, Nov 7, 2013 at 3:32 PM, Bruce Ashfield <bruce.ashfield@gmail.com>wrote:
> On Tue, Nov 5, 2013 at 9:54 PM, Philip Tricca <flihp@twobit.us> wrote:
> > It's not pretty but the mechanisms in sysvinit-inittab assume the
> > console device name is tty*. The Xen console device doesn't meet
> > this criteria.
>
> merged (with a minor tweak to the shortlog).
>
> Bruce
>
> >
> > Signed-off-by: Philip Tricca <flihp@twobit.us>
> > ---
> > recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend | 7 +++++++
> > 1 file changed, 7 insertions(+)
> > create mode 100644
> recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
> >
> > diff --git a/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
> b/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
> > new file mode 100644
> > index 0000000..2edbedf
> > --- /dev/null
> > +++ b/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
> > @@ -0,0 +1,7 @@
> > +do_install_append() {
> > + echo "${DISTRO_FEATURES}" | grep -q 'xen'
> > + if [ $? -eq 0 ]; then
> > + echo "" >> ${D}${sysconfdir}/inittab
> > + echo "X0:12345:respawn:/sbin/getty 115200 hvc0" >>
> ${D}${sysconfdir}/inittab
> > + fi
> > +}
> > --
> > 1.7.10.4
> >
> > _______________________________________________
> > meta-virtualization mailing list
> > meta-virtualization@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/meta-virtualization
>
>
>
> --
> "Thou shalt not follow the NULL pointer, for chaos and madness await
> thee at its end"
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
>
[-- Attachment #2: Type: text/html, Size: 2884 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Add getty to inittab for login on Xen serial console.
2013-11-08 4:07 ` Chris Patterson
@ 2013-11-08 13:23 ` Philip Tricca
0 siblings, 0 replies; 4+ messages in thread
From: Philip Tricca @ 2013-11-08 13:23 UTC (permalink / raw)
To: Chris Patterson; +Cc: meta-virtualization
On 11/07/2013 11:07 PM, Chris Patterson wrote:
> Thanks, handy!
Similarly handy if you're building Xen guest VMs is throwing
USE_VT = "0"
SERIAL_CONSOLES = ""
into one of your conf files (I'm using a distro conf) to keep your
machine config from putting a physical serial device that your VM won't
have in the inittab. Messages about init sleeping for 30 seconds on
account of gettys restarting too quickly get old fast.
- Philip
> On Thu, Nov 7, 2013 at 3:32 PM, Bruce Ashfield <bruce.ashfield@gmail.com
> <mailto:bruce.ashfield@gmail.com>> wrote:
>
> On Tue, Nov 5, 2013 at 9:54 PM, Philip Tricca <flihp@twobit.us
> <mailto:flihp@twobit.us>> wrote:
> > It's not pretty but the mechanisms in sysvinit-inittab assume the
> > console device name is tty*. The Xen console device doesn't meet
> > this criteria.
>
> merged (with a minor tweak to the shortlog).
>
> Bruce
>
> >
> > Signed-off-by: Philip Tricca <flihp@twobit.us
> <mailto:flihp@twobit.us>>
> > ---
> > recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend | 7
> +++++++
> > 1 file changed, 7 insertions(+)
> > create mode 100644
> recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
> >
> > diff --git
> a/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
> b/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
> > new file mode 100644
> > index 0000000..2edbedf
> > --- /dev/null
> > +++ b/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
> > @@ -0,0 +1,7 @@
> > +do_install_append() {
> > + echo "${DISTRO_FEATURES}" | grep -q 'xen'
> > + if [ $? -eq 0 ]; then
> > + echo "" >> ${D}${sysconfdir}/inittab
> > + echo "X0:12345:respawn:/sbin/getty 115200 hvc0" >>
> ${D}${sysconfdir}/inittab
> > + fi
> > +}
> > --
> > 1.7.10.4
> >
> > _______________________________________________
> > meta-virtualization mailing list
> > meta-virtualization@yoctoproject.org
> <mailto:meta-virtualization@yoctoproject.org>
> > https://lists.yoctoproject.org/listinfo/meta-virtualization
>
>
>
> --
> "Thou shalt not follow the NULL pointer, for chaos and madness await
> thee at its end"
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization@yoctoproject.org
> <mailto:meta-virtualization@yoctoproject.org>
> https://lists.yoctoproject.org/listinfo/meta-virtualization
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-11-08 13:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-06 2:54 [PATCH] Add getty to inittab for login on Xen serial console Philip Tricca
2013-11-07 20:32 ` Bruce Ashfield
2013-11-08 4:07 ` Chris Patterson
2013-11-08 13:23 ` Philip Tricca
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.