mkinitcpio outputs errors on btrfs
When installing Arch Linux on a btrfs filesystem using the suggested pacstrap -K /mnt base linux linux-firmware
from the Installation guide, mkinitcpio will display the following error:
WARNING: no fsck helpers were found. fsck will not be run on boot.
WARNING: errors were encountered during the build. The image may not be complete.
...
error: command failed to execute correctly
I am aware that what is on the Installation Guide is just an example and starting point, and the above warning/error is gone when passing btrfs-progs
to the pacstrap
line.
With that said, given that:
btrfsck is an alias of btrfs check command and is now deprecated.
https://man.archlinux.org/man/core/btrfs-progs/btrfs-check.8.en
and btrfs doesn't really need a fsck, I would like to propose for btrfs-progs to stop making btrfsck available in the initramfs[0], and for mkinitcpio' fsck warning/error to be changed to a less confusing message, or better yet, to not do anything when the filesystem doesn't require a fsck (btrfs, bcachefs?).
mkinitcpio' autodetect hook is already taking care of appending btrfs.ko.zst
to the initramfs and the system will be bootable regardless of such errors.
Thanks.