Your message dated Mon, 23 Jan 2023 10:52:56 +0000
with message-id <e1pjurc-002oyo...@fasolo.debian.org>
and subject line Bug#1028181: fixed in runit 2.1.2-53
has caused the Debian Bug report #1028181,
regarding runit-init makes the system unbootable
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 ow...@bugs.debian.org
immediately.)


-- 
1028181: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1028181
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: runit-init
Version: 2.1.2-52
Severity: grave
Justification: makes the system unbootable

Hi,

in order to investigate runit-init as a possible init alternative, I
tried booting a minimal Debian system containing runit-init and a linux
kernel image. This is what I got:

| Begin: Running /scripts/local-bottom ... done.
| Begin: Running /scripts/init-bottom ... done.
| [    1.518637] Not activating Mandatory Access Control as /sbin/tomoyo-init 
does not exist.
| - runit: $Id: 25da3b86f7bed4038b8a039d2f8e8c9bbcf0822b $: booting.
| - runit: enter stage: /etc/runit/1
| /etc/rcS.d/S01mountkernfs.sh: 280: mount: not found
| /etc/rcS.d/S01mountkernfs.sh: 280: mount: not found
| /etc/rcS.d/S01mountkernfs.sh: 280: mount: not found
| Starting hotplug events dispatcher: systemd-udevd.
| Synthesizing the initial hotplug events (subsystems)...done.
| Synthesizing the initial hotplug events (devices)...[    1.752098] input: 
Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input2
| done.
| Waiting for /dev to be fully populated...[    1.763554] sr 1:0:0:0: Attached 
scsi generic sg0 type 5
| [    1.766920] ACPI: button: Power Button [PWRF]
| [    2.180257] RAPL PMU: API unit is 2^-32 Joules, 0 fixed counters, 
10737418240 ms ovfl timer
| [    2.196663] cryptd: max_cpu_qlen set to 1000
| [    2.284932] AVX2 version of gcm_enc/dec engaged.
| [    2.286968] AES CTR mode by8 optimization enabled
| done.
| /etc/rcS.d/S03mountdevsubfs.sh: 280: mount: not found
| Activating swap...failed.
| /etc/rcS.d/S04checkroot.sh: 210: mount: not found
| Cannot check root file system because it is not mounted read-only. ... failed!
| /etc/rcS.d/S04checkroot.sh: 316: mount: not found
| Creating compatibility symlink from /etc/mtab to /proc/mounts. ... (warning).
| /etc/init.d/mountkernfs.sh: 289: mount: not found
| /etc/init.d/mountkernfs.sh: 289: mount: not found
| /etc/init.d/mountkernfs.sh: 289: mount: not found
| /etc/init.d/mountdevsubfs.sh: 289: mount: not found
| Checking file systems...fsck: cannot check /dev/vda: fsck.ext4 not found
| done.
| Cleaning up temporary files... /tmp.
| Mounting local filesystems.../etc/rcS.d/S07mountall.sh: 35: mount: not found
| failed.
| Activating swapfile swap, if any...done.
| /etc/rcS.d/S07mountall.sh: 280: mount: not found
| /etc/rcS.d/S07mountall.sh: 280: mount: not found
| Cleaning up temporary files....
| Cleaning up temporary files....
| - runit: leave stage: /etc/runit/1
| - runit: enter stage: /etc/runit/2
| /etc/runit/2: 8: mount: not found
| runsvchdir: default: current.

The biggest problem here is the lack of mount. mount is not essential
and nothing depends on it, so it goes missing. Something in the runit
ecosystem should definitely depend on mount.

Then after boot, no getty is spawned and there is no way to log in.

I retried with mount installed and got something different:

| Begin: Running /scripts/local-bottom ... done.
| Begin: Running /scripts/init-bottom ... done.
| [    1.554225] Not activating Mandatory Access Control as /sbin/tomoyo-init 
does not exist.
| - runit: $Id: 25da3b86f7bed4038b8a039d2f8e8c9bbcf0822b $: booting.
| - runit: enter stage: /etc/runit/1
| Starting hotplug events dispatcher: systemd-udevd.
| Synthesizing the initial hotplug events (subsystems)...done.
| Synthesizing the initial hotplug events (devices)...done.
| Waiting for /dev to be fully populated...[    1.770569] input: Power Button 
as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input2
| [    1.783674] sr 1:0:0:0: Attached scsi generic sg0 type 5
| [    1.796417] ACPI: button: Power Button [PWRF]
| [    2.151984] RAPL PMU: API unit is 2^-32 Joules, 0 fixed counters, 
10737418240 ms ovfl timer
| [    2.155414] cryptd: max_cpu_qlen set to 1000
| [    2.287889] AVX2 version of gcm_enc/dec engaged.
| [    2.290906] AES CTR mode by8 optimization enabled
| done.
| Activating swap...done.
| [    3.003917] EXT4-fs (vda): re-mounted. Quota mode: none.
| Checking root file system...fsck: error 2 (No such file or directory) while 
executing fsck.ext4 for /dev/vda
| fsck exited with status code 8
| failed (code 8).
| An automatic file system check (fsck) of the root filesystem failed.
| A manual fsck must be performed, then the system restarted.
| Press Enter for maintenance
| (or press Control-D to continue):

It seems like runit requires checking the filesystem, but e2fsprogs is
not essential anymore and it fails hard. Nowadays, checking ext4
filesystems is optional and systemd skips doing it in the absence of
e2fsprogs.

So I went on to retry with e2fsprogs added and this is what I got:

| Begin: Running /scripts/local-bottom ... done.
| Begin: Running /scripts/init-bottom ... done.
| [    1.484294] Not activating Mandatory Access Control as /sbin/tomoyo-init 
does not exist.
| - runit: $Id: 25da3b86f7bed4038b8a039d2f8e8c9bbcf0822b $: booting.
| - runit: enter stage: /etc/runit/1
| Starting hotplug events dispatcher: systemd-udevd.
| Synthesizing the initial hotplug events (subsystems)...done.
| Synthesizing the initial hotplug events (devices)...[    1.687579] input: 
Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input2
| done.
| Waiting for /dev to be fully populated...[    1.700596] sr 1:0:0:0: Attached 
scsi generic sg0 type 5
| [    1.703218] ACPI: button: Power Button [PWRF]
| [    2.105448] RAPL PMU: API unit is 2^-32 Joules, 0 fixed counters, 
10737418240 ms ovfl timer
| [    2.152185] cryptd: max_cpu_qlen set to 1000
| [    2.348491] AVX2 version of gcm_enc/dec engaged.
| [    2.352216] AES CTR mode by8 optimization enabled
| done.
| Activating swap...done.
| [    3.116512] EXT4-fs (vda): re-mounted. Quota mode: none.
| Checking root file system...debvm: clean, 7586/66560 files, 428724/1048576 
blocks
| done.
| [    3.219541] EXT4-fs (vda): re-mounted. Quota mode: none.
| Creating compatibility symlink from /etc/mtab to /proc/mounts. ... (warning).
| Checking file systems...done.
| Cleaning up temporary files... /tmp.
| Mounting local filesystems...done.
| Activating swapfile swap, if any...done.
| Cleaning up temporary files....
| Cleaning up temporary files....
| - runit: leave stage: /etc/runit/1
| - runit: enter stage: /etc/runit/2
| runsvchdir: default: current.

In particular, the user has no way to log into the system as no getty is
being spawned. I see that the autopkgtest has to do this manually via
"ln -s /etc/sv/getty-ttyS0 /etc/service/". Do you think there could be a
better way to achieve this such that at least the console= kernel
command line parameter is automatically issued a getty?

Helmut

--- End Message ---
--- Begin Message ---
Source: runit
Source-Version: 2.1.2-53
Done: Lorenzo Puliti <plore...@disroot.org>

We believe that the bug you reported is fixed in the latest version of
runit, 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 1028...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Lorenzo Puliti <plore...@disroot.org> (supplier of updated runit 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 ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 11 Jan 2023 23:02:49 +0100
Source: runit
Architecture: source
Version: 2.1.2-53
Distribution: unstable
Urgency: medium
Maintainer: Lorenzo Puliti <plore...@disroot.org>
Changed-By: Lorenzo Puliti <plore...@disroot.org>
Closes: 1028181 1028270
Changes:
 runit (2.1.2-53) unstable; urgency=medium
 .
   * runit-init:
       - depends on mount [linux-any] (Closes: #1028181)
       - change architecture field to any, because of mount
       - recommends runit-services
   * runit: suggests runit-services
   * getty-run:
       - enable the serial getty-ttyS0 by default
       - make getty-ttyS0 device configurable
       - automatically set device for getty-ttyS0 from
         kernel `console=' command line (Closes: #1028270)
   * d/copyright: update copyright years
   * d/tests: update init-switch test
Checksums-Sha1:
 6cd40f03f5afeb56c709a75791a7b0c9fbb20de6 2294 runit_2.1.2-53.dsc
 e21bca8799ff9f0f7e22d32c4ff1bee2481148de 62884 runit_2.1.2-53.debian.tar.xz
 418dc19e8cd4ebaf34f27f33112acd9716c9bab3 5918 runit_2.1.2-53_source.buildinfo
Checksums-Sha256:
 15d657617a02a3c6135f7d59b61b7fdadfb2c61a95f83b6e76e13e01a3c8f654 2294 
runit_2.1.2-53.dsc
 e0cb64f10dd95ee11a9641a7212aaae76b4f2b85b7cdcd95fc4ee203827e4b8c 62884 
runit_2.1.2-53.debian.tar.xz
 ffcdffdb2033b4aacacfd3feeecb1a0e5b3dfd41c960febdd6de3f742e5ac9e9 5918 
runit_2.1.2-53_source.buildinfo
Files:
 6a81ba19f2275f8488b0dc3793d56ebf 2294 admin optional runit_2.1.2-53.dsc
 aa91c93b0e734aee200168f10a58c10c 62884 admin optional 
runit_2.1.2-53.debian.tar.xz
 a56ac9795bebe698f9baaccfc7d34138 5918 admin optional 
runit_2.1.2-53_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEkjZVexcMh/iCHArDweDZLphvfH4FAmPOXjUACgkQweDZLphv
fH4OBhAAlV5hxeIhYiNWhlxwSMG8FAEieN/7ZY2ZNBccznJ3VMtTOQ4LUcnBYRD/
AhhQPS3vUJ7fb4CPCyKfCYvt3YDS520Xj1gFVjAUEv1uMfzy7nIYYCWDN4oFddBp
yCg3LlfJ0mN3HiVzYiIVsA3PReAez1f+Y3pryH9ysxX4fmO5iiL0mq8w1gWBJq3j
w9RswCvCpzRctzk7IrtLF3jKandYqDDyb05KH2KxGrYOjf9UZ4diYjEGcvoiouxi
kPb506LFb/rgmNs5EDaD33q67cXt5BVx0CH9kFmn+Psi8Z/S5tqUlk74QpN3Gkj7
zCR4PVY1mqidm1nwDbixDbaAAdr5LyqcELHy9sc5eY9n3yzXCpw/fftJ5Hp40Cfl
g9XoOozwbP+u06Xi0s42GrS39M6PYr0SAC/SnGURMwppe/8lHclUY+HmR4XsdCMj
ca9aKXaTUxdk56lRob+vbPzDs9Iamg9AOIRh1u1dL7mFW3dbh/ocM64Uv8P9RK5e
Lfp7t6rX1nRjl2B23fpnPwCkYnEQYaWzyXOKHCePYBMV1dOeKmDUb9bBCzWCgMl0
MH6T9W7c2/gSIO7ldvv1Tu/d4xjQ1/UNQ2v/0YORPCcyPBj8rFhumZmQoCt7wLw+
XHnQGyy/1hgfh4BezXzgdZEZzx70zJFcAQx048qkn66NLibtVJI=
=YiLm
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to