David Sprayberry
2018-10-06 04:33:43 UTC
To prepare to boot LFS in UEFI mode, followed the link to the UEFI hint in section 8.3.1. The hint said, "Booting LFS is no longer as simple as `grub-install /dev/sda`, implying I should not follow this explicit instruction in the book concerning grub-install in section 8.4.3. By the way, I later realized that this hint is outdated by the updated 2018-04-09 hint. I followed the instructions in the hint, installing some dependencies and reinstalling GRUB, configuring the kernel, and then up to the command:
grub-install --bootloader-id=LFS --recheck --debug &> grub.log
I have attached a text file of grub.log. The error message at the end is:
...
grub-install: error: relocation 0x4 is not implemented yet
The beginning lines may be more informative, though:
grub-install: info: executing modprobe efivars 2>/dev/null.
grub-install: info: Looking for /sys/firmware/efi ...
grub-install: info: ...found.
Installing for x86_64-efi platform.
grub-install: info: cannot open `/boot/grub/device.map': No such file or directory.
grub-install: info: /dev/sda1 is not present.
grub-install: info: Looking for /dev/sda1.
grub-install: info: /dev/sda is a parent of /dev/sda1.
grub-install: info: /dev/sda1 starts from 2048.
grub-install: info: opening the device hostdisk//dev/sda....
I'm not sure why it thinks /dev/sda1 is not present. I did mount the SSD's efi partition (sda1) onto /boot/efi as instructed at the beginning of the hint.
Any pointers will be helpful. Thanks,
-David
grub-install --bootloader-id=LFS --recheck --debug &> grub.log
I have attached a text file of grub.log. The error message at the end is:
...
grub-install: error: relocation 0x4 is not implemented yet
The beginning lines may be more informative, though:
grub-install: info: executing modprobe efivars 2>/dev/null.
grub-install: info: Looking for /sys/firmware/efi ...
grub-install: info: ...found.
Installing for x86_64-efi platform.
grub-install: info: cannot open `/boot/grub/device.map': No such file or directory.
grub-install: info: /dev/sda1 is not present.
grub-install: info: Looking for /dev/sda1.
grub-install: info: /dev/sda is a parent of /dev/sda1.
grub-install: info: /dev/sda1 starts from 2048.
grub-install: info: opening the device hostdisk//dev/sda....
I'm not sure why it thinks /dev/sda1 is not present. I did mount the SSD's efi partition (sda1) onto /boot/efi as instructed at the beginning of the hint.
Any pointers will be helpful. Thanks,
-David