Bug#1110746: orphan-sysvinit-scripts: mdadm scripts not installed even if package mdadm is installed

Matthew Vernon matthew at debian.org
Mon Aug 11 11:56:50 BST 2025


Hi,

>   /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 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



More information about the Debian-init-diversity mailing list