#1110746 orphan-sysvinit-scripts: mdadm scripts not installed even if package mdadm is installed #1110746
- Package:
- orphan-sysvinit-scripts
- Source:
- orphan-sysvinit-scripts
- Submitter:
- Håkan Johansson
- Date:
- 2025-08-25 15:19:03 UTC
- Severity:
- normal
Dear Maintainer, I am using mdadm-based raid mirrors for my / file systems on some servers. I am not using systemd, but this package (orphan-sysvinit-scripts) was already installed. After an upgrade to trixie on one such system, it does not boot. I have currently no access to its console... On a second similar system (this) I had also performed the update but not yet rebooted... On investigation, the file /etc/init.d/mdadm is missing. As far as I can see, this should be installed by /usr/lib/orphan-sysvinit-scripts/update_init_d.sh if the file /lib/systemd/system/mdadm.service exists. However, that file does not exist. It looks like it would have come from the mdadm package in bookworm [1], but no longer in trixie [2]. I suppose this breaks the heuristic in this package for when to install the mdadm init scripts. If I cheat a bit and do 'touch /lib/systemd/system/mdadm.service' followed by running '/usr/lib/orphan-sysvinit-scripts/update_init_d.sh' then /etc/init.d/mdadm is at least created. And similary for mdadm-waitidle.service to get mdadm-waitidle. I have not tested yet if this is sufficient to successfully reboot the system. (Will only reboot when being physically at the machines. :) ) [1] https://packages.debian.org/bookworm/amd64/mdadm/filelist [2] https://packages.debian.org/trixie/amd64/mdadm/filelist
Hi, If you'd updated orphan-sysvinit-scripts first (i.e. before mdadm), then I think it would have worked OK (because I think then o-s-s would have installed the init script, and it's then not removed it on later upgrade). But this is obviously a problem - I think when the mdadm script was added to o-s-s, mdadm.service was in the then-current package. I think the closest replacement service is probably /usr/lib/systemd/system/mdmonitor.service ...so I should update o-s-s to look for that rather than mdadm.service, I think. The same problem will also impact mdadm-waitidle, which there doesn't seem to be an obvious systemd service for now (presumably it's handled by /usr/lib/systemd/system-shutdown/mdadm.shutdown ). Regards, Matthew
Hi, the problem with the machine not booting was not the missing mdadm script, but that I had managed to scramble one of the raid members*, such that the root filesystem could not be mounted. Also an fsck did not work. After failing that raid member, booting worked! * Likely due to running grub-install manually, just to be 'safe'. That did not turn out too well..--- However, the /etc/init.d/mdadm was as expected found to be missing. I'm now on thin ice, since I do not know what is needed for booting with an md device to be sucessful, or how the necessary parts are found when the initramfs image is built. In case it is of any help, I attach a list of files in the initramfs before and after tricking /etc/init.d/mdadm into existance as in the original report. Also a dmesg before and after. I do not see any significance differences between any of the files. That is perhaps to be expected, since boot was successful.--- Since the missing /etc/init.d/mdadm was not the cause of the machine becoming unbootable, I think the severity of this bug lowered. Thanks for keeping sysvinit workable! Best regards, Håkan
Hi, I've uploaded a new version of orphan-sysvinit-scripts to unstable; that should fix the missing-init-script issue, although as you say it won't help with your broken md array. Regards, Matthew
We believe that the bug you reported is fixed in the latest version of
orphan-sysvinit-scripts, 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 1110746@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Matthew Vernon <matthew@debian.org> (supplier of updated orphan-sysvinit-scripts 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 ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 11 Aug 2025 12:17:52 +0100
Source: orphan-sysvinit-scripts
Architecture: source
Version: 0.22
Distribution: unstable
Urgency: high
Maintainer: Debian sysvinit maintainers <debian-init-diversity@chiark.greenend.org.uk>
Changed-By: Matthew Vernon <matthew@debian.org>
Closes: 1110746
Changes:
orphan-sysvinit-scripts (0.22) unstable; urgency=high
.
* Make mdadm scripts trigger on mdmonitor.service, mdmon@.service, since
mdadm.service got removed (Closes: #1110746)
Checksums-Sha1:
e476496dff22c82bdbb285cee08515270da62d4f 1869 orphan-sysvinit-scripts_0.22.dsc
52962902320687dc07125e7a8a2a52418294cd0f 18752 orphan-sysvinit-scripts_0.22.tar.xz
Checksums-Sha256:
70a525529ac82f60f42c6661acec573970acd0eb4cd38ca1febfd3edc29375b9 1869 orphan-sysvinit-scripts_0.22.dsc
e2bcc1e4ddeb6e2c27b88922d15511da0dcff18ce11fbdccb4a9c73b2d56b036 18752 orphan-sysvinit-scripts_0.22.tar.xz
Files:
def18351cf983b7f6607ae8af55d7eb3 1869 admin optional orphan-sysvinit-scripts_0.22.dsc
fda6c98ffcef06e40e68da035c1ccc8a 18752 admin optional orphan-sysvinit-scripts_0.22.tar.xz
-----BEGIN PGP SIGNATURE-----
iQJHBAEBCgAxFiEEuk75yE35bTfYoeLUEvTSHI9qY8gFAmifEVwTHG1hdHRoZXdA
ZGViaWFuLm9yZwAKCRAS9NIcj2pjyFDtEACKUAx4ECvCnDkRHIA9fzW3YYg/Czmb
oJDoHcny90bcM6MuB2xOSJ6YSESUkBIT7h5BP1ZpJz3gyMj0LKOgFTQ1Ckx4fVN3
/2xD0eyRwCPKD81711cPPjWE8fXg+GI6Q0OT3gIEGtfNjkPUDpDpcH+DwNdBQt6/
V83WZDTyGCAtjuoP07YV1egdOH0gZKDrb2LlVGUxztXgqRzGL39nYbxyW4//GNom
zbuhI04xUXnRnRTLBkShoyz6GnPwMD5TcOkKZ/BmjqDownn3sUdi6giU8y5xR7pf
8gDYnNYq+ZznVCSCtFHLtFnLc+HAthHzczKI0X/z2CrN+xVm7fT1PUg1pBnwkYqK
MwTfGlj+DF9Z8xRBhQ+LviJYAjtAUxAfeyP2KeMpPr86sZjW/tJvChxHtvL0FSia
4YkMN42d/LqXn9sJ8+MzelX6LMq5eOOMFtRyvbj3CvMaI2TAlpX53y+Dgz/I4cxV
xDRGvfpCVXdpRl3ReGpQWFsCDu+UVbs+IKgEWTvWYQ4BZMEwA7iLocZO4NifpzOf
/5OZQNwTWI1uQ63/Pl25bNTQ8HKX4gaFg9+8f4Xd2TWp+DiTATVjxBxGfR8Gti3A
HdPSuI4ABpIWazLD/buQ4FvtPLLTy73RIr2jOiJ6D+Ri1ITFOoGJbgeGG21+4fea
R0ch2a5Dy5sAYg==
=2bGw
-----END PGP SIGNATURE-----
We believe that the bug you reported is fixed in the latest version of
orphan-sysvinit-scripts, 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 1110746@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Matthew Vernon <matthew@debian.org> (supplier of updated orphan-sysvinit-scripts 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 ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 25 Aug 2025 10:48:32 +0100
Source: orphan-sysvinit-scripts
Architecture: source
Version: 0.21+deb13u1
Distribution: trixie
Urgency: high
Maintainer: Debian sysvinit maintainers <debian-init-diversity@chiark.greenend.org.uk>
Changed-By: Matthew Vernon <matthew@debian.org>
Closes: 1110746
Changes:
orphan-sysvinit-scripts (0.21+deb13u1) trixie; urgency=high
.
* Make mdadm scripts trigger on mdmonitor.service, mdmon@.service, since
mdadm.service got removed (Closes: #1110746)
Checksums-Sha1:
13095db26170869ceae482bf1f430713d03e9bec 1909 orphan-sysvinit-scripts_0.21+deb13u1.dsc
68840d4aa72e6f4862cc550a04e6e24d110bc1e3 18772 orphan-sysvinit-scripts_0.21+deb13u1.tar.xz
Checksums-Sha256:
38183aca2584a1df5508de2a4b6c29975f21de601e03551218be9f646841664c 1909 orphan-sysvinit-scripts_0.21+deb13u1.dsc
c7e69b098f09cf1feebb581554150670442413390eb0013f7d58ae2abd59b966 18772 orphan-sysvinit-scripts_0.21+deb13u1.tar.xz
Files:
6384e5142bc50915b0930f57a58f2eaa 1909 admin optional orphan-sysvinit-scripts_0.21+deb13u1.dsc
6c23659696a8b8e068ef34e88361dce7 18772 admin optional orphan-sysvinit-scripts_0.21+deb13u1.tar.xz
-----BEGIN PGP SIGNATURE-----
iQJHBAEBCgAxFiEEuk75yE35bTfYoeLUEvTSHI9qY8gFAmisNzcTHG1hdHRoZXdA
ZGViaWFuLm9yZwAKCRAS9NIcj2pjyP99D/wMmatInkX5nzY3zdt4SrEVrFwXhe5H
FHSMj1C/RG4MA0naD+qtjdNr7ZehIi7mhnTKtytEm+8R9ow0/k8aKWBkhwhmdEzw
Fl8knsx7ranRUb1F3AEl7WLVwFdVlQjOvJBMCaebhw9OoeBvEnK+GNCfsR4VSQk8
+Tv6AbT9Aqey1TzdIjPCv5WjsDjdebCKXne8J8AGbOCEkNYyEIUaaOLGvZ5bERIv
DPZOfgRXko/pLkjqfSCXuaKWQl3TUt6AEFpe4ZGxjAF1ZT4bQqJytf73LIYHuOIz
AFaAeGZvlKkZj7q7dF2ZWRFKyvwkaJfow+IBYN7Qexv7myI9ZShMLVJnhx8EOaro
wLq7ivABZuoGee/7jymRR0Q9JFeNwbRK4dIFS6EQkkkpXdlPgR7KvhjPCswyY691
nNFILxkzLw1/WhI3g72cCbD7VF90s1O4ixPHVZ5iN7Jq4AUUA40FizqMNXGmOWwV
Ug9KGrA2whbuGpllzkK98oR15voabFSvQSoo2GkwoxcQvUxSroA6DOrnrZTnYgDd
WFBHhBQzfmsPssa9mz35/XZ0lpepTDLTbVv1b2bSvLQ7j4JiG+XJB7d2PyaEEutM
R4W3oon7uUiblKvIeNW0eRNi4gF82fuESOqqz+sLasPFGr9Bk/gT118uyW2ya06v
xSFTwRwdE2C/VQ==
=4qJS
-----END PGP SIGNATURE-----