Your message dated Tue, 14 Oct 2025 08:59:28 +0000
with message-id <[email protected]>
and subject line Bug#1106830: fixed in sysvinit 3.15-4
has caused the Debian Bug report #1106830,
regarding initscripts: checkroot.sh returns error and does not attempt to save
logs if logfile does not exist
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.)
--
1106830: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1106830
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: initscripts
Version: 3.14-4
Dear maintainer,
checkroot.sh returns error and does not even attempt to save logs if logfile does not exist - for example, when /var/log
is on a different partition, which is not yet mounted.
[root@debian13 ~]# ls -l /var/log/fsck
ls: cannot access '/var/log/fsck': No such file or directory
[root@debian13 ~]# /etc/init.d/checkroot.sh start
Will now check root file system:Cannot persist the following output on disc ...
failed!
[/sbin/fsck.ext4 (1) -- /] fsck.ext4 -a -C0 /dev/sda1
/dev/sda1: clean, 28655/524288 files, 374797/2096896 blocks
The culprit is the logsave_best_effort function in mount-functions.sh, which only runs logsave if the logfile exists,
defeating the very purpose of logsave.
I suggest the following patch:
--- old/mount-functions.sh
+++ new/mount-functions.sh
@@ -727,7 +727,7 @@
# This function does not actually belong here; it is duct-tape solution
# for #901289.
logsave_best_effort() {
- if [ -x /sbin/logsave ] && [ -e "${FSCK_LOGFILE}" ]; then
+ if [ -x /sbin/logsave ]; then
logsave -s "${FSCK_LOGFILE}" "$@"
else
log_failure_msg "Cannot persist the following output on disc"
And maybe we should change the log severity to warning - the important part is actually running the command (in our
case: fsck), not saving the log; and perhaps changing "disc" to "disk" in the error message (AFAIK "disc" refers to
optical media).
--- old/mount-functions.sh
+++ new/mount-functions.sh
@@ -730,7 +730,7 @@
if [ -x /sbin/logsave ]; then
logsave -s "${FSCK_LOGFILE}" "$@"
else
- log_failure_msg "Cannot persist the following output on disc"
+ log_warning_msg "Cannot persist the following output on disk"
"$@"
fi
}
With my patch(es):
[root@debian13 ~]# ls -l /var/log/fsck
ls: cannot access '/var/log/fsck': No such file or directory
[root@debian13 ~]# /etc/init.d/checkroot.sh start
Will now check root file system:[/sbin/fsck.ext4 (1) -- /] fsck.ext4 -a -C0
/dev/sda1
/dev/sda1: clean, 28657/524288 files, 374807/2096896 blocks
.
[root@debian13 ~]# pidof logsave
2309
[root@debian13 ~]# mount /var/log
[root@debian13 ~]# pidof logsave
[root@debian13 ~]# ls -l /var/log/fsck/checkroot
-rw-r--r-- 1 root root 227 May 30 09:34 /var/log/fsck/checkroot
--
Best regards,
Zsolt Bartos-Elekes
--- End Message ---
--- Begin Message ---
Source: sysvinit
Source-Version: 3.15-4
Done: Mark Hindley <[email protected]>
We believe that the bug you reported is fixed in the latest version of
sysvinit, 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.
Mark Hindley <[email protected]> (supplier of updated sysvinit 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: SHA256
Format: 1.8
Date: Tue, 14 Oct 2025 08:40:20 +0100
Source: sysvinit
Architecture: source
Version: 3.15-4
Distribution: experimental
Urgency: medium
Maintainer: Debian sysvinit maintainers
<[email protected]>
Changed-By: Mark Hindley <[email protected]>
Closes: 444262 617249 704108 1106830
Changes:
sysvinit (3.15-4) experimental; urgency=medium
.
* Don't test for existing logfile before running logsave(8).
(Closes: #1106830)
* umountfs: recursively umount tmpfs. (Closes: #704108)
* umountnfs: recursively umount network filesystems. (Closes: #444262)
* /etc/init.d/rc: also set opost to avoid staircase effect.
(Closes: #617249)
Checksums-Sha1:
ee97f5ed45aa9cc601dbda83830aea415626fed6 2382 sysvinit_3.15-4.dsc
329a6fd8676448f587647e505614a2e3ec2a62c2 122808 sysvinit_3.15-4.debian.tar.xz
14c688eef6a3ad7e110865ca31d717b6a811c28f 6790 sysvinit_3.15-4_amd64.buildinfo
Checksums-Sha256:
646f285fce40cb76ddb33cd43879d362a09f3d64d43adc4be9857cf6e1fd9ef5 2382
sysvinit_3.15-4.dsc
620d39f1ec8d687092ce4bbb5c806ef5d3911e137eb2ba1b41c4d88031e0d3e7 122808
sysvinit_3.15-4.debian.tar.xz
4c79c9b7f4675fdb3914a8656d21ac9b4c2d892267bc3ed963324c8bf217064b 6790
sysvinit_3.15-4_amd64.buildinfo
Files:
e1640c3e06352b82e526b4ba370fd2ba 2382 admin optional sysvinit_3.15-4.dsc
9c24142af8edf3ddf21cc1830863ea04 122808 admin optional
sysvinit_3.15-4.debian.tar.xz
3601772ee0ae11112cfe4006332741f1 6790 admin optional
sysvinit_3.15-4_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEUGwVpCsK9aCoVCPu0opFvzKH1kkFAmjuAuAACgkQ0opFvzKH
1kkU3Q/9Fve6GVrHwafeea7Q4FgbN13XPxphI3h368Hw06sHE2EVG9aA0UTtyxpf
81EQAFX8ZQQ1vkUa1MUfGgSRnTqGwRsOsDhuHbRaXLOBCIXVFTr935JyIrv9noAO
kIXaxVt91fhlJyw27ct0GqgaAaBStRrhvaJvq+VtFNpwSPt0u6q9TUMidqvdQdMh
AdZ4aGG4SOjzigNZWA6RoGSKs6VaFb6wfMWA8nCKahp26TY4gWHqzcXbEi1dyDJb
iD2fIeoOf9wimzFDp30unik1SUxCrRe/LvvNXthn2vkScPdNCdVvNoVmQ1/Y9ZGf
ky1y69TOkTFAYmx/c6rTk2d8NIP5cFnvweYRzAZ8ei4MzS2OQHmR+33kKewEM68k
CHJuwC5dKO7np2m9FaZ3ImwHkMSRcqtYFgK7oI95nTDPOrkJgsVdpfJDYAuW/XUX
Vj+H4Qr0yv1m0LosvmXQTnH6oTIhdkhE/691Y2mepcnH5ewWV+LlclPPk6805b/X
Enc0nBiMVYChl4k9YdBp5ZUVfzw8NsvUbZDbLwuxJYP8GM786L557pnaVyX6I445
nkFE+HUVPhOt84ty5OPAVRSE9NMuWJUF4uZDPm9DMhoEUo7ZaW+njxrJtVGXvF84
jVZwAc1thAbhtPu2TgVhroh1FD6murHna4LbgZyUFIBhlQ+Xdi0=
=GW3P
-----END PGP SIGNATURE-----
pgpDng3GVVljv.pgp
Description: PGP signature
--- End Message ---