update-initramfs fails to include fsck in initrd

update-initramfs reports the following warning when generating initrd.img:

To identify filesystem type of /, update-initramfs requires device of / listed in /etc/fstab.

My rootfs is cross-debootstrapped in virtual machine, and does not contain a valid entry for / in /etc/fstab.

So I added the entry for / manually and the problem went away:

Ref.: #773643 – initramfs-tools: fsck.* not added to initrd image for mount by UUID or label with type=auto – Debian Bug report logs

Leave a Reply

Your email address will not be published. Required fields are marked *