Grub2: Difference between revisions

From Halfface
Jump to navigation Jump to search
m (moved Grub to Grub2)
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.
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
  }
  }

Revision as of 06:32, 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.
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
}