Grub2: Difference between revisions

From Halfface
Jump to navigation Jump to search
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 8: Line 8:
     linux (loop)/live/vmlinuz $bootoptions
     linux (loop)/live/vmlinuz $bootoptions
     initrd (loop)/live/initrd.img
     initrd (loop)/live/initrd.img
}
==kali linux grub2 efi boot==
Content of /etc/grub.2/40_custom of fedora 21 machine.
# Install grub2-efi-modules to make loopback work.
# Copy file to this location /boot/efi/EFI/fedora/x86_64-efi/loopback.mod
menuentry "Kali Linux" {
    insmod loopback
    iso="/iso/kali-linux-1.0.8-amd64.iso"
    bootoptions="findiso=$iso boot=live noconfig=sudo username=root hostname=kali quiet splash"
    search --set -f $iso
    loopback loop $iso
    linuxefi (loop)/live/vmlinuz $bootoptions
    initrdefi (loop)/live/initrd.img
  }
  }

Latest revision as of 06:37, 29 October 2014

kali linux in grub2

Store iso on standard partition.

menuentry "Kali Linux" {
   iso="/iso/kali-linux-1.0.8-amd64.iso"
   bootoptions="findiso=$iso boot=live noconfig=sudo username=root hostname=kali quiet splash"
   search --set -f $iso
   loopback loop $iso
   linux (loop)/live/vmlinuz $bootoptions
   initrd (loop)/live/initrd.img
}

kali linux grub2 efi boot

Content of /etc/grub.2/40_custom of fedora 21 machine.

# Install grub2-efi-modules to make loopback work.
# Copy file to this location /boot/efi/EFI/fedora/x86_64-efi/loopback.mod
menuentry "Kali Linux" {
   insmod loopback
   iso="/iso/kali-linux-1.0.8-amd64.iso"
   bootoptions="findiso=$iso boot=live noconfig=sudo username=root hostname=kali quiet splash"
   search --set -f $iso
   loopback loop $iso
   linuxefi (loop)/live/vmlinuz $bootoptions
   initrdefi (loop)/live/initrd.img
}