On 2018-04-08 21:04 +0800, niuneilneo wrote: > Frankly speaking, there are lot of bugs even following the UEFI guide > provided by LFS book. I just name a few:
No, this is not provided by LFS book. The hints are written by fans. > 1. The efivars version in this guilde is 30, and not working for my VirualBox > pc. I use version efivars 34. I'm using efivars 31. I just gone to efivars homepage and got the latest version when I was building LFS. > 2. The installation guide of popt in the UEFI guide is also not working for > my env, so I have to follow the guide in > the BLFS book section for popt installation. Yes, my efivars-31 links to shared libpopt. Static libpopt is not necessary and we should use BLFS guide. > 3. The grub.cfg setting is a disaster for my env. Because the VB pc recognize > my hard disk as hd1 instead of hd0. And > the vmlinuz image should put to the root folder of /boot (/dev/sda2 in my > PC), and the /boot/vmlinuz is never working > for my pc. grub.cfg must be customized. I always build GRUB with devmapper support, and use PARTUUID to find partitions. (Or my system won't boot with an USB stick plugged in). The only thing we can learn from the example is insmod efi_gop insmod efi_uga insmod font if loadfont ... then ... ... fi If you are using a seperated /boot partition (LFS book 2.4.1.4), you should "set root=(</boot partition>)" and use "/vmlinuz" in grub.cfg. If not, "set root=(<root partition>) and use "/boot/vmlinuz". -- Xi Ruoyao <r...@stu.xidian.edu.cn> School of Aerospace Science and Technology, Xidian University -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style