Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot boot vmlinuz in efi
2016-05-24, 10:04 (This post was last modified: 2016-05-30 09:13 by sspans.)
Post: #14
RE: Cannot boot vmlinuz in efi
I've solved this by using a memdisk to store the vmlinuz/initrd.
Sample script below:

Code:
# needed to build a custom bootloader
yum install grub2-efi-modules

mkdir -p boot/grub
cp grub.cfg boot/grub/
tar cvf memdisk.tar vmlinuz initrd.img boot
grub2-mkimage  -v --memdisk=memdisk.tar -o bootx64.efi -O x86_64-efi memdisk tar echo sleep linux linuxefi lsefi reboot multiboot linux16 boot efi_uga gfxterm
rm -rf memdisk.tar boot

And a grub.cfg like this:
Code:
menuentry "CentOS-6" {
    set gfxpayload=keep
    linux (memdisk)/vmlinuz ks=http://boot.mccm.mcinfra.net/install/centos-6/install.ks ksdevice=link
    initrd (memdisk)/initrd.img
}

set timeout=0
set default="CentOS-6"
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Cannot boot vmlinuz in efi - sspans - 2016-05-24 10:04



User(s) browsing this thread: 2 Guest(s)