Do not explicitly include /bin/rm in initramfs; /usr/bin/rm is already present. (See: #875918)
Balint Reczey wrote [1]:
I'm not sure how this change is expected to work. Rm is already
present in the initramfs without mdadm:
test@debian:~$ sudo unmkinitramfs /boot/initrd.img-5.10.0-3-amd64
initrd-unpacked
[sudo] password for test:
test@debian:~$ find initrd-unpacked/ -name rm
initrd-unpacked/usr/bin/rm
test@debian:~$ ls -alh initrd-unpacked-mdadm/bin
lrwxrwxrwx 1 root root 7 Feb 9 20:27 initrd-unpacked-mdadm/bin -> usr/bin
Perhaps it was needed for the upgrade path from stretch to jessie,
since there was a reference to it in the original report.
The statement to include the 'rm' executable is hereby removed.
[1] https://salsa.debian.org/lechner/mdadm/-/commit/34300a61f788c17836346314b8654ab5475fbbb1#note_227125
Felix Lechner
3 years ago