Description of problem: In the current code, if the rootfs is located on a SCSI (or NVME) device and root=/dev/sda3 (or root=/dev/nvme0n1p3) is specified as boot option, kernel boots failed with CONFIG_BLK_DEV_SD=m (or CONFIG_BLK_DEV_NVME=m) when there is no initrd with defconfig. Version-Release number of selected component (if applicable): 6.6.52 How reproducible: use defconfig to build and update kernel, kernel boots failed if there is no initrd. Steps to Reproduce: 1. build 2. update 3. boot Actual results: /dev/root: Can't open blockdev VFS: Cannot open root device "/dev/sda3" or unknown-block(0,0): error -6 /dev/root: Can't open blockdev VFS: Cannot open root device "/dev/nvme0n1p3" or unknown-block(0,0): error -6 Expected results: boot normally Additional info: none
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/3981
https://gitee.com/anolis/cloud-kernel/pulls/3981 has been merged.