On 11/26/19 12:11 PM, JackMacWindows wrote:
Hello,
I've just finished setting up an x86_64 LFS installation on a flash
drive. I have followed the LFS 9.0 book almost exactly, except that I
upgraded the kernel to 5.2.21, and I'm using UEFI instead of BIOS for
GRUB using the hint given in Chapter 8.4. To test the new setup, I ran a
QEMU VM using the OVMF EFI, booting from the drive via -hda. It worked
fine, booting to the Bash prompt and everything. I then tested the
installation on real hardware, but the kernel panicked saying it
couldn't find init. But even after setting init=/sbin/init, Linux still
panicked saying "Requested init /sbin/init failed (error -2)". I have
tried reinstalling sysvinit to no avail, and I have been unable to
reproduce the issue in any VM (QEMU, VirtualBox). Loading the kernel
manually in QEMU (-kernel) works too, which bypasses the UEFI entirely.
I've also tried using different computers, but they still have the same
problem. Does anybody have any idea why this may be happening?
In different environments the kernel may identify partitions
differently. On you grub command line you have root=<some value>. It
is evidently correct for QEMU, but not for the real hardware.
-- Bruce
--
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