setup-disk: NVMe not added to initfs_features if installing on RAID1+LVM+NVMe
If installing on LVM+RAID1 to two NVMe devices, the NVMe feature is not added to initfs_features
in install_mounted_root()
. I think on modern systems that NVMe is becoming prevalent enough that it should be added by default to initfs_features
rather than being detected later in the function. As an alternate solution, an environment variable could be added (e.g. $ADDITIONAL_INITFS_FEATURES
) to allow forcing features without needing to modify setup-disk
before installing (but I think this would be less user-friendly).
To reproduce, install on a system with two NVMe devices (e.g. nvme0n1
and nvme1n1
). Install as lvmsys
and specify both devices on the same line to set them up as RAID1. After rebooting, the system will be unable to start as the NVMe driver will not be loaded early enough. Adding nvme
to the default initfs_features
list in setup-disk
before installing corrects this issue.