Your message dated Sat, 20 Mar 2021 20:23:45 +0000
with message-id <[email protected]>
and subject line Bug#983389: fixed in finit 4.0~rc3-1
has caused the Debian Bug report #983389,
regarding finit-sysv: can't load init after install of finit-sysv
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
983389: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=983389
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: finit-sysv
Version: 3.2~rc3-2
Severity: important
Justification: can't load init system after install of finit-sysv
-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 5.10.0-3-amd64 (SMP w/1 CPU thread)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C),
LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
After installing finit-sysv version 3.2~rc3-2 (and dependencies), the
result is a significantly broken system - notably can't load init system
// example/synopsis - my comments added on lines starting with "//"
// Starting from a relatively base/default bullseye 11 amd64
// with systemd-sysv already installed (same seems to also occur if
// other init systems are first installed then finit-sysv is installed)
# cat /etc/debian_version
bullseye/sid
# uname -m
x86_64
# apt-get -y --no-install-recommends install finit-sysv
// ... installation itself gives no errors
// Note that we end up with /sbin/init as symlink to pathname /finit
// that doesn't exist:
# ls -l /sbin/init
lrwxrwxrwx 1 root root 6 Jan 4 09:15 /sbin/init -> /finit
# ls -l /finit
ls: cannot access '/finit': No such file or directory
// We do, however, have /sbin/finit:
# ls -l /sbin/finit
-rwxr-xr-x 1 root root 150248 Jan 4 09:15 /sbin/finit
# dpkg -S /sbin/finit
finit: /sbin/finit
// Haven't rebooted yet, so still running old init system,
// so we use appropriate reboot for that:
# ls -l /proc/1/exe
lrwxrwxrwx 1 root root 0 Feb 23 09:58 /proc/1/exe -> /lib/systemd/systemd
# systemctl reboot
// After reboot, however, init system fails to load
// ...
Begin: Running /scripts/init-bottom ... done.
run-init: /sbin/init: No such file or directory
Target filesystem doesn't have requested /sbin/init.
run-init: /sbin/init: No such file or directory
run-init: /etc/init: Permission denied
run-init: /bin/init: No such file or directory
/bin/sh: 0: can't access tty; job control turned off
// This leaves us without a loaded init, we examine and attempt
// fix or workaround:
# ls -l /sbin/init
lrwxrwxrwx 1 root root 6 Jan 4 09:15 /sbin/init -> /finit
# ls -l /finit
ls: cannot access '/finit': No such file or directory
# fgrep ro, /proc/mounts
/dev/vda1 / ext4 ro,relatime 0 0
# mount -o remount,rw /
# cd /sbin
# ls -l finit
-rwxr-xr-x 1 root root 150248 Jan 4 09:15 finit
# ls -ld init
lrwxrwxrwx 1 root root 6 Jan 4 09:15 init -> /finit
// we attempt workaround:
# ln -sf finit init
# ls -l init finit
-rwxr-xr-x 1 root root 150248 Jan 4 09:15 finit
lrwxrwxrwx 1 root root 5 Feb 23 10:07 init -> finit
// we then proceed with sync and reboot:
# cd /
# sync&&sync
# mount -o remount,ro /
# reboot -f -f
// We then end up with:
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
[ 3.162731] Not activating Mandatory Access Control as /sbin/tomoyo-init
does not exist.
[ 3.177559] finit[1]:main():Failed mounting /sysfs: No such file or directory
[ 3.184566] finit[1]:load_plugins():Failed, cannot open plugin directory
/usr/lib/x86_64-linux-gnu/finit/plugins: No such file or directory
[ 3.191312] input: ImExPS/2 Generic Explorer Mouse as
/devices/platform/i8042/serio1/input/input2
[ 3.213120] EXT4-fs (vda1): re-mounted. Opts: errors=remount-ro
[ 3.221124] Adding 1046524k swap on /dev/vda5. Priority:-2 extents:1
across:1046524k FS
[ 4.437246] pcieport 0000:00:02.6: pciehp: Slot(0-6): No device found
// That appeared to get us past the /finit path issue,
// but now we've failed on /sysfs issue (that pathname doesn't exist).
// At this point, we've got netiher login nor shell, so we reset,
// and boot with init=/bin/sh to examine and attempt workaround(s):
# mount -o remount,rw /
# mount -a
# ls -l /proc/1/exe
lrwxrwxrwx 1 root root 0 Feb 23 10:18 /proc/1/exe -> /bin/dash
# ls -ld /sys*
dr-xr-xr-x 13 root root 0 Feb 23 10:18 /sys
// we try symbolic link, in hopes that may suffice, guessing it may be
// looking for sysfs to be mounted upon or accessible via /sysfs
# (cd / && ln -s sys sysfs)
# ls -ld /sys*
dr-xr-xr-x 13 root root 0 Feb 23 10:18 /sys
lrwxrwxrwx 1 root root 3 Feb 23 10:18 /sysfs -> sys
// we then proceed to reboot:
# sync&&sync
# mount -o remount,ro /
# reboot -f -f
// and end up stuck at same place:
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
[ 3.163861] Not activating Mandatory Access Control as /sbin/tomoyo-init
does not exist.
[ 3.175776] finit[1]:main():Failed mounting /sysfs: No such file or directory
[ 3.181364] finit[1]:load_plugins():Failed, cannot open plugin directory
/usr/lib/x86_64-linux-gnu/finit/plugins: No such file or directory
[ 3.197055] input: ImExPS/2 Generic Explorer Mouse as
/devices/platform/i8042/serio1/input/input2
[ 3.220225] EXT4-fs (vda1): re-mounted. Opts: errors=remount-ro
[ 3.231206] Adding 1046524k swap on /dev/vda5. Priority:-2 extents:1
across:1046524k FS
[ 4.419100] pcieport 0000:00:02.6: pciehp: Slot(0-6): No device found
// again, without login or shell
// we again reset to reboot and boot with init=/bin/sh
# mount -o remount,rw /
// we try alternative, removing our /sysfs symbolic link we created:
# rm /sysfs
// and replacing it with empty directory, matching perms/ownerships to /sys:
# mkdir /sysfs
# ls -ld /sys*
dr-xr-xr-x 13 root root 0 Feb 23 10:20 /sys
drwxr-xr-x 2 root root 4096 Feb 23 10:20 /sysfs
# chmod u-w /sysfs
# ls -ld /sys*
dr-xr-xr-x 13 root root 0 Feb 23 10:20 /sys
dr-xr-xr-x 2 root root 4096 Feb 23 10:20 /sysfs
// we then again proceed with reboot:
# sync&&sync
# mount -o remount,ro /
# reboot -f -f
Begin: Running /scripts/init-bottom ... done.
[ 3.191286] Not activating Mandatory Access Control as /sbin/tomoyo-init
does not exist.
[ 3.202393] finit[1]:main():Failed mounting /sysfs: No such file or directory
[ 3.208346] finit[1]:load_plugins():Failed, cannot open plugin directory
/usr/lib/x86_64-linux-gnu/finit/plugins: No such file or directory
[ 3.238045] EXT4-fs (vda1): re-mounted. Opts: errors=remount-ro
[ 3.243444] input: ImExPS/2 Generic Explorer Mouse as
/devices/platform/i8042/serio1/input/input2
[ 3.255421] Adding 1046524k swap on /dev/vda5. Priority:-2 extents:1
across:1046524k FS
[ 4.481832] pcieport 0000:00:02.6: pciehp: Slot(0-6): No device found
// we again end up stuck with no login and no shell
// at this point we abandon our attempts, reset and revert:
// we again reset to reboot and boot with init=/bin/sh
# mount -o remount,rw /
# mount -a
# apt-get -y install systemd-sysv
// ...
# dpkg -l systemd-sysv
ii systemd-sysv 247.3-1 amd64 system and service manager - SysV
# sync&&sync
# mount -o remount,ro /
# reboot -f -f
// and then we're back to things being okay after having switched init
// system back to systemd-sysv
// Also, the other init systems:
// runit-init
// systemd-sysv
// sysvinit-core
// appear to install and run okay, whereas installing finit-sysv
// appears to lead to serious problems, and wasn't able to easily find
// suitable correction or workaround for finit-sysv
--- End Message ---
--- Begin Message ---
Source: finit
Source-Version: 4.0~rc3-1
Done: Yangfl <[email protected]>
We believe that the bug you reported is fixed in the latest version of
finit, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Yangfl <[email protected]> (supplier of updated finit package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sat, 20 Mar 2021 18:52:28 +0800
Source: finit
Architecture: source
Version: 4.0~rc3-1
Distribution: unstable
Urgency: medium
Maintainer: Yangfl <[email protected]>
Changed-By: Yangfl <[email protected]>
Closes: 983389
Changes:
finit (4.0~rc3-1) unstable; urgency=medium
.
* New upstream release
* Enable some services by default (Closes: #983389)
* Bump Standards-Version to 4.5.1
Checksums-Sha1:
bd40df55d8f7c61a01853adb2ce17227560dc23a 2001 finit_4.0~rc3-1.dsc
ac986a81b62c8ef79e4b1bcd46a774b8d90229cd 372876 finit_4.0~rc3.orig.tar.xz
4aa1a735af7a126e1b2131dc099d1e20734e6112 6180 finit_4.0~rc3-1.debian.tar.xz
21dc3e6d775052d01a794e423b6311a70dd2d205 7028 finit_4.0~rc3-1_amd64.buildinfo
Checksums-Sha256:
185b14033083ae5e9f87e6d8765d044dfed47a342080195db64740bd8ab7a118 2001
finit_4.0~rc3-1.dsc
f1eff576cfaf444742386671fdeb43b2ef6ca235f436cd07c5f9330c17de061c 372876
finit_4.0~rc3.orig.tar.xz
9f18b315dd44a576c4cd11891b0988cc0d5472fe8662366b2f0c21ae9f9562f1 6180
finit_4.0~rc3-1.debian.tar.xz
bd4634c76849f5bcf680b3daaa59ec8282c720c6a76f1ba75a5dc38b0dc76884 7028
finit_4.0~rc3-1_amd64.buildinfo
Files:
2fddd26ab8c042ae2c3720a6069e80a9 2001 admin optional finit_4.0~rc3-1.dsc
c5e27d8160debc44ccc868970cc023ca 372876 admin optional
finit_4.0~rc3.orig.tar.xz
493e3e918b8c7956b55b9ce847e270a3 6180 admin optional
finit_4.0~rc3-1.debian.tar.xz
f61ed6e05f3f99b418f271d45b9a790f 7028 admin optional
finit_4.0~rc3-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEfncpR22H1vEdkazLwpPntGGCWs4FAmBWSIgACgkQwpPntGGC
Ws7Obw/+NFl4z/3Zo5QXx698NaimGkN2XHEj3JOUwD4AuWqxIkTg1nzwL4plOE2r
mUwFmvqz6yqYSSx3gB2QqabSS42qsXHxzjkidFk009SB7l+gqS/IER/Ou9twx1BZ
glVx69wcbv0KUnkT4eXxjr0iHGjEVJ5V7B+TgiqhMIPtUhHGylcdLhoSS/LW7i9t
7pKlYosVqG9dQcu9ijlSYfjz6xecRr5rmMpHWfjRCkP/A8cWS66SK/f2YdYT/fZL
TVvsUHt5mA/aOK+o6EsFBDCjNxI77aKoshq9XS3BKjyokeYeeJ1z63EWz8q+jgRZ
7hJBqPOonF3EMqWsLF2rhfDzt0DYediZyJJt3dVUnl0FqC7I3tAHK6jNDR7JOIiH
SiZdCqS76hekQ8qy1qQL9M4eZJdyBfE78UJopYZaMdPk6KAidOT4n3rYPzGIPpZ9
hEE/P0KQkqKWcbkKu1gTm7vPLz6ifrTH00A3OUuU4guBlZQkmU5M2yOlI9StwZ9t
EFLn6+PpsVFu4cu0BaEZa2+GjO+L29fArK8P38zYMLB6psVZyZDchVGu6t74fj6+
zvzFd8z5WKP91QuCk3HQfZvL3nLD0NuWUvdsx2UPuWxVqmujOPuhYn0Bo5eEos+N
QzRqYU8duhwCanAMIjoJrQaXjuPEWibksV+OmX/7XtxDRjh4Ss8=
=Ppzt
-----END PGP SIGNATURE-----
--- End Message ---