Bug#960132: mdadm: mdcheck_start.service trying to start unexisting file
X-Debbugs-Cc: none
Package: mdadm
Version: 4.1-5
Severity: normal
mdcheck_start.service trying to start unexisting file
root@debian:/# cat /lib/systemd/system/mdcheck_start.service | grep Exec
ExecStartPre=-/usr/lib/mdadm/mdadm_env.sh
ExecStart=/usr/share/mdadm/mdcheck --duration $MDADM_CHECK_DURATION
root@debian:/# ls -la /usr/share/mdadm/mdcheck
ls: cannot access '/usr/share/mdadm/mdcheck': No such file or directory
root@debian:/# dpkg -L mdadm | grep mdcheck
/lib/systemd/system/mdcheck_continue.service
/lib/systemd/system/mdcheck_continue.timer
/lib/systemd/system/mdcheck_start.service
/lib/systemd/system/mdcheck_start.timer
-- System Information:
Debian Release: 10.4
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-9-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages mdadm depends on:
ii debconf [debconf-2.0] 1.5.71
ii libc6 2.28-10
ii lsb-base 10.2019051400
ii udev 241-7~deb10u4
Versions of packages mdadm recommends:
ii exim4-daemon-light [mail-transport-agent] 4.92-8+deb10u3
ii kmod 26-1
Versions of packages mdadm suggests:
pn dracut-core <none>
-- debconf information:
mdadm/autoscan: true
mdadm/mail_to: root
mdadm/start_daemon: true
mdadm/autocheck: true
There is a patch in attachment, that adds missed scripts into the
package during build process.
This bug also affects Ubuntu mdadm package -
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/1852747
--- a/debian/rules 2020-05-10 01:51:20.696000000 +0700
+++ b/debian/rules 2020-05-10 01:52:56.400000000 +0700
@@ -28,6 +28,7 @@
rm -rf udeb
mkdir udeb
ln *.[ch] Makefile udeb/
+ ln misc/mdcheck misc/syslog-events udeb/
touch $@
build-arch: udeb/build-stamp
@@ -63,6 +64,8 @@
install -Dm0755 debian/mkconf $(DESTDIR)/usr/share/mdadm/mkconf
install -Dm0755 debian/checkarray $(DESTDIR)/usr/share/mdadm/checkarray
+ install -Dm0755 udeb/mdcheck $(DESTDIR)/usr/share/mdadm/mdcheck
+ install -Dm0755 udeb/syslog-events $(DESTDIR)/usr/share/mdadm/syslog-events
install -Dm0755 debian/bugscript $(DESTDIR)/usr/share/bug/mdadm/script
install -Dm0755 udeb/mdadm $(DESTDIR_UDEB)/sbin/mdadm
install -Dm0755 udeb/mdmon $(DESTDIR_UDEB)/sbin/mdmon
Reply to: