I didn't resurrect the thread, by almost the same name, from last November because of some miscues back then and I think I've moved to a more detailed and successful position. But I'd be more than happy to dredge up that thread or move this to blfs-support. The discussion I'd like to generate falls in that finely narrow gap between LFS and BLFS. And this post will probably be a little long.

I've gotten LFS-7.5 to boot from both gummiboot and, more interestingly, from GRUB in Ubuntu. Last year I was unable to do the latter. My goal is to get GRUB working from the EFI partition and have the OS, in this case HP, boot manager default to my GRUB-lfs-7.5. Additionally, I do not want to copy every kernel to the EFI partition. I want those kernels to reside in $(root)/boot. I booted 7.5 this way from Ubuntu's grub, and if I want to keep Ubuntu around, I need go no further. But I'd like to do this so that I can share the procedure here--and, yes, until Apple writes a linux version of iTunes, I want to be able to boot to Windows too.

It may not seem like it, but doing this is just, well, maybe almost, like installing GRUB to a boot partition, except that in this case the boot partition is called EFI Partition and is vfat instead of ext{3,4}.

But I've reached a knowledge impasse. The first one generated when I built GRUB in Ch. 6. I accidentally discovered that GRUB, before I installed it was built for i386 and none of the efi options I specified were configured. I discovered and used the switches:

--target=x86_64
--with-platform=efi

I learned these from both the ARCH and Ubuntu wiki's. Neither explanation nor help with these appeared in <./configure --help> or in the GRUB Manual. The GRUB info file is the GRUB Manual.

I'd like to find some *good* documentation that discusses the options for various GRUB building concepts; e.g., ./configure and grub-mkimage. Like I said, I can find these things on sites like ARCH and Ubuntu, but I've not found anything that describes the uses of these various switches. Does anyone know of any documentation like that. If there's a book, I'll go buy it.

In particular when I built GRUB, /boot/grub was not created. This surprised me when I discovered it. I don't know if the above two configuration switches has anything to do with it, and I have no way of finding out. My logs are silent on the issue.

One possibility, at least install-grub wants to make sure that the module EFIVARS is loaded. The kernel documentation says, and has said since 3.10.10, that this module is no longer used and efivarfs is used. I do have that configured and mounted. I suppose I could re-configure my kernel and include that module to see if it breaks anything.

I'm hoping that someone who monitors this list will be able to answer or at least point me in the right direction for resolving the documentation and the kernel things.

Thanks,
Dan



--
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

Reply via email to