Bug#1063629: sysvinit-core.postinst: remove obsolete code path for /etc/inittab fixup on hurd in 2014

Johannes Schauer Marin Rodrigues josch at debian.org
Fri Feb 9 23:43:00 GMT 2024

Source: sysvinit
Version: 3.08-6
Severity: normal
Tags: patch
User: debian-dpkg at lists.debian.org
Usertags: dpkg-root-support
X-Debbugs-Cc: debian-hurd at lists.debian.org


In 2014, code was added to to the sysvinit-core.postinst to fix up
/etc/inittab files on hurd which had /libexec/getty instead of
/sbin/getty and which were missing the following line:

    c:23:respawn:/sbin/getty 38400 console

Also since 2014 (commit 6af0110c) ./debian/share/inittab.gnu is
installed on enduser systems which contains aforementioned fixes
already. The fixup code in sysvinit-core.postinst is thus long obsolete
as any systems that were affected should've long been upgraded and new
systems were installed using inittab.gnu which is not broken.

I prepared a merge request which removes the obsolete code path here:


Removing this old codepath helps with DPKG_ROOT because when creating
chrootless systems, uname -s output is potentially incorrect, for example when
preparing a hurd chroot on linux. See bug #1063624 for a similar instance of
maintainer scripts calling uname causing problems for creating chroots using
the DPKG_ROOT mechanism.


cheers, josch

More information about the Debian-init-diversity mailing list