Control: tags -1 + patch Hello again,
Trivial patch attached for below suggestion for your convenience. (Making it convenient to test will have to be implemented in a higher level tool that enables the provided example.) On Thu, Nov 15, 2018 at 01:20:02PM +0100, Andreas Henriksson wrote: > I'd say it's probably overkill. I'm thinking similar to this > would be enough: > > https://salsa.debian.org/debian/sysvinit/commit/321e38634d9a11a1c2fb72b924a6ef513431654a > > (OTOH, /etc isn't really the place to provide examples but oh well...) Regards, Andreas Henriksson PS. inittab uses undocumented legacy syntax for getty in other/preexisting places in inittab and should be updated to use documented syntax (because who knows when the undocumented syntax stops working). Someone<tm> should file this as a separate issue.....
>From c9f50a6a4cd9e3a6d369b63216168674e3115c09 Mon Sep 17 00:00:00 2001 From: Andreas Henriksson <andr...@fatal.se> Date: Fri, 16 Nov 2018 01:16:50 +0100 Subject: [PATCH] Provide a systemd-nspawn example in inittab Using systemd-nspawn is a convenient way for init system testing. Unfortunately the shipped inittab doesn't work out of the box inside systemd-nspawn as there's only /dev/console available. Users will thus need to add a getty on /dev/console and to avoid annoying messages about the other gettys constantly respawning they will also need to disable gettys on /dev/tty1 etc. (Since those device nodes doesn't exist. Apparently systemd-nspawn tries to give limited access to the actual physical system by default.) Closes: #799329 --- debian/share/inittab | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debian/share/inittab b/debian/share/inittab index c3fcb66a..0913e690 100644 --- a/debian/share/inittab +++ b/debian/share/inittab @@ -70,3 +70,7 @@ po::powerokwait:/etc/init.d/powerfail stop # #T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3 +# Example for systemd-nspawn +# Only /dev/console exists inside nspawn, so we need a getty on that. +# Also make sure to comment out the gettys on tty* above. +#C0:2345:respawn:/sbin/getty -8 --noclear --keep-baud console 115200,38400,9600 -- 2.19.1