UEFI booting linux, initramfs not loaded? - Printable Version +- iPXE discussion forum (https://forum.ipxe.org) +-- Forum: iPXE user forums (/forumdisplay.php?fid=1) +--- Forum: General (/forumdisplay.php?fid=2) +--- Thread: UEFI booting linux, initramfs not loaded? (/showthread.php?tid=16861) |
UEFI booting linux, initramfs not loaded? - orihicle - 2018-12-05 23:31 I've been trying to boot the newer Dell computers with UEFI, given they no longer support the BIOS boot method from hard drive, and you need to boot UEFI to install Ubuntu as UEFI. I've set up the Ubuntu 16.04 LTS installer, I boot the computer on UEFI and boot iPXE. I select the menu entry for installing Ubuntu 16.04, and the screen shows the kernel downloading and the initrd downloading: From there, the kernel boots, and almost immediately shows the error that it cannot open root device "nfs": The ipxe code to do this, Code: set nfs_path /home/netboot/images ... and when I boot this on BIOS boot method, I hit the break at the top of the init script. When I boot this on UEFI, I get that the root device NFS does not exist. It feels like NIC drivers, so I compiled the e1000e driver into the Ubuntu kernel and tried booting... only to get the same error again. At that point, it still felt like it wasn't loading the initramfs, so I did what any experimental person would do: I compiled the initramfs into the kernel, yielding a 200MB bzimage. I edited the menu, Code: kernel ${nfs_file}/${ubuntu_path}/install/hwe-netboot/ubuntu-installer/amd64/linux-allinone It seems like the initramfs as loaded by ipxe isn't being used specifically in UEFI boot mode. Perhaps it's being loaded to an incorrect area. Does anyone have input here? RE: UEFI booting linux, initramfs not loaded? - NiKiZe - 2018-12-06 21:36 When booting in efi mode you have to tell the kernel what the name of your initrd is. So on the imgargs line, add initrd=initrd-ori This is documented in several places, but is specific to what the Linux kernel needs to know which file in efifs that it should load, if any RE: UEFI booting linux, initramfs not loaded? - orihicle - 2018-12-07 18:41 That got it! Specifying the initrd= parameter works for UEFI and doesn't harm the BIOS boot method at all either. Thanks very much :-) I can't find it actually documented anywhere, though. Some support tickets for unrelated projects. Would it be possible to add a Note in http://ipxe.org/cmd/kernel ? My account doesn't have edit access. RE: UEFI booting linux, initramfs not loaded? - NiKiZe - 2019-01-03 22:42 Just noticed that we have documented this in our own FAQ, see http://forum.ipxe.org/showthread.php?tid=5948&pid=19101#pid19101 |