Bug#435287: sysvinit: Please use new -8 option from util-linux
Mark Hindley
mark at hindley.org.uk
Tue Feb 25 10:06:47 GMT 2025
Control: tags -1 forky
On Thu, Jun 30, 2016 at 03:05:40PM +0200, Petter Reinholdtsen wrote:
> [Dmitrii Kashin]
> > I'd like to supply this bug with a patch. Ask to approve it. Thank
> > you.
>
> Note, this patch will only affect new installations. Do we want to
> modify existing installations? If we do, which ones? As the inittab
> file by good reasons is not a conffile, such modification to existing
> installations would have to be done carefully by the postinst script.
I think just affecting new installations is OK here. But only for text
consoles. I am less certain that changing serial lines and modems is a good
idea.
Also, only changing linux; patches for non-linux are welcome.
Updated patch for forky below.
Mark
commit d25505a79f52948ea8c309ca5fa4c26bb8eb4a15
Author: Mark Hindley <mark at hindley.org.uk>
Date: Tue Feb 25 09:59:12 2025 +0000
Update inittab on new installations to assume 8bit clean environment.
Closes: #435287
diff --git a/debian/share/inittab b/debian/share/inittab
index 5ac6f6d3..ae8b12c4 100644
--- a/debian/share/inittab
+++ b/debian/share/inittab
@@ -51,12 +51,12 @@ po::powerokwait:/etc/init.d/powerfail stop
# Note that on most Debian systems tty7 is used by the X Window System,
# so if you want to add more getty's go ahead but skip tty7 if you run X.
#
-1:2345:respawn:/sbin/getty --noclear 38400 tty1
-2:23:respawn:/sbin/getty 38400 tty2
-3:23:respawn:/sbin/getty 38400 tty3
-4:23:respawn:/sbin/getty 38400 tty4
-5:23:respawn:/sbin/getty 38400 tty5
-6:23:respawn:/sbin/getty 38400 tty6
+1:2345:respawn:/sbin/getty -8 --noclear 38400 tty1
+2:23:respawn:/sbin/getty -8 38400 tty2
+3:23:respawn:/sbin/getty -8 38400 tty3
+4:23:respawn:/sbin/getty -8 38400 tty4
+5:23:respawn:/sbin/getty -8 38400 tty5
+6:23:respawn:/sbin/getty -8 38400 tty6
# Example how to put a getty on a serial line (for a terminal)
#
More information about the Debian-init-diversity
mailing list