On 2018-08-03 09:54 +0800, Allence wrote:
> I built a 8.2 lfs system, but when I set up grub I got some expectations.
> This is my entry:
> ### BEGIN /etc/grub.d/41_custom ###
> GRUB_DEFAULT=0
> GRUB_HIDDEN_TIMEOUT=0
> GRUB_HIDDEN_TIMEOUT_QUIET=true
> GRUB_TIMEOUT=3
> GRUB_CMDLINE_LINUX=""
> GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
> GRUB_DISABLE_LINUX_UUID=true
> GRUB_DISABLE_LINUX_RECOVERY=true
> GRUB_DISABLE_OS_PROBER="true"
> 
> 
> insmod ext2
> set root=(hd0,1)
> 
> menuentry "GNU/Linux, Linux 4.15.3-lfs-8.2" {
> linux /boot/bzimage-p2n root=/dev/sdd1 ro}
> 
> menuentry "GNU/Linux, Linux Class1" {
> linux /boot/bzimage-p3 root=UUID=7e0380fc-6039-48e8-860f-497163cfcfc5 ro 
> net.ifnames=0 rootdelay=15
> }
> 
> menuentry "GNU/Linux, Linux Class2" {
> search --no-floppy --fs-uuid --set=root  7e0380fc-6039-48e8-860f-497163cfcfc5
> linux /boot/bzimage-p3 ro rootdelay=15
> }

In "Class 1" entry "root=UUID=..." won't work without initrd.

In "Class 2" entry the kernel command line doesn't have "root=" parameter.
Of course it won't work.
-- 
Xi Ruoyao <[email protected]>
School of Aerospace Science and Technology, Xidian University
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to