Help Creating UEFI A MENU For My Bootable (BIOS/UEFI) CDROM
I made a cdrom rescue rootfs that can boot in both bios-mode & uefi-mode.
However, I have to use the UEFI (ShellX64.efi) Shell to boot my UEFI isolinux/efiboot.img.
What I need is a regular efibootmgr created UEFI menu entry like "Boot0003* Rescue-cdrom" &
would appreciate any info you can provide.
Here is what I have now:
[root@localhost stan]# efibootmgr -v
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0004,0000,0001,0002
Boot0000* Fedora-17 HD(1,28,100000,8673914e-53a2-4c46-a75f-0e55944f2005)File(\EFI\FEDORA17\bzImage.efi)
Boot0001 Hard Drive BIOS(2,0,00)
Boot0002 CD/DVD Drive BIOS(3,0,00)SATA PM: ASUS DRW-24B1ST .
Boot0004* Rescue-usb HD(1,800,64000,b9d26721-d617-4718-bcee-5bb0d49bb913)File(\EFI\BOOT\BOOTX64.efi)i.n.i.t.r.d.=.\.E.F.I.\.B.O.O.T.\.i.n.i.t.r.f.s...r.d.z...
Here is what I tried:
1.) efibootmgr -c -d /dev/sr0 p 1 -L Rescue-CD -l \\EFI\\BOOT\\BOOTX64.efi -u "initrd=\\EFI\\BOOT\\initrfs.rdz"
Error: no partition information on disk /dev/sr0.
Cowardly refusing to create a boot option.
2.) efibootmgr -c -d /dev/sr0 -L Rescue-CD -l \\EFI\\BOOT\\BOOTX64.efi -u "initrd=\\EFI\\BOOT\\initrfs.rdz"
Error: no partition information on disk /dev/sr0.
Cowardly refusing to create a boot option.
To boot this rescue-cdrom via uefi-mode NOW I have to:
Enter bios & start my UEFI Shell .........................Shellx64.efi is in my /dev/sdb1 ESP root (/) directory
shell> fs1: ..............................................change to cdrom drive
fs1:\> cd EFI\BOOT .......................................change to cdrom kernel & initrd location
fs1:\> BOOTX64.efi initrd=\EFI\BOOT\initrfs.rdz ..........boot my efistub kernel & initrd
NOTE: BOOTX64.efi is a Linux efistub (bzImage) kernel configured with built-in boot options
CONFIG_CMDLINE="root=/dev/ram0 selinux=0 plymouth.enable=0 raid=noautodetect single"
To make my (UEFI-MODE) eltorito boot cdrom rescue.iso image I used the following:
genisoimage -v -R -no-emul-boot -boot-load-size 4 -boot-info-table -b isolinux/isolinux.bin -c isolinux/boot.cat -eltorito-alt-boot -e isolinux/efiboot.img -no-emul-boot -o rescue.iso .
Content of isolinux directory:
bzImage ..............Regular (non-efistub) Kernel
initrd ...............Rootfs Image
efiboot.img ..........UEFI Tree Image
isolinux.bin .........Boot code
isolinux.cfg .........Boot config
message.txt ..........User message
Content of (FAT-32) efiboot.img:
EFI ..................Directory
BOOT..................Directory
BOOTX64.efi ..........EFISTUB Kernel renamed from bzImage
initrfs.rdz ..........Rootfs (gzip) Image
Thanks for reading this post.
|