New comment by Duncaen on void-packages repository https://github.com/void-linux/void-packages/pull/32493#issuecomment-898961775 Comment: `/lib` is a symlink to `/usr/lib`. The installed initramfs tool generates the initramfs file and therefor is responsible for it and its name (they could generate `initramfs-${version}.cpio` or add a compression suffix). This happens in the kernel.d `{pre,post}-install` hooks, it makes a lot of sense to also use the `{pre,post}-remove` hooks to remove those fails again. dracut already deletes the file in its hook and so does mkinitcpio: `/etc/kernel.d/post-remove/20-dracut` (https://github.com/void-linux/void-packages/blob/master/srcpkgs/dracut/files/kernel-hook-postrm).