Revamped to support EFI booting via grub2.
This commit is contained in:
15
grub/grub.cfg
Normal file
15
grub/grub.cfg
Normal file
@@ -0,0 +1,15 @@
|
||||
insmod usbms
|
||||
insmod usb_keyboard
|
||||
insmod part_gpt
|
||||
insmod part_msdos
|
||||
insmod fat
|
||||
insmod iso9660
|
||||
insmod udf
|
||||
insmod ext2
|
||||
insmod reiserfs
|
||||
insmod ntfs
|
||||
insmod hfsplus
|
||||
insmod linux
|
||||
insmod chain
|
||||
search --file --no-floppy --set=voidlive "/boot/grub/grub_void.cfg"
|
||||
source "(${voidlive})/boot/grub/grub_void.cfg"
|
36
grub/grub_void.cfg.in
Normal file
36
grub/grub_void.cfg.in
Normal file
@@ -0,0 +1,36 @@
|
||||
|
||||
set pager="1"
|
||||
set locale_dir="(${voidlive})/boot/grub/locale"
|
||||
|
||||
if [ -e "${prefix}/${grub_cpu}-${grub_platform}/all_video.mod" ]; then
|
||||
insmod all_video
|
||||
else
|
||||
insmod efi_gop
|
||||
insmod efi_uga
|
||||
insmod video_bochs
|
||||
insmod video_cirrus
|
||||
fi
|
||||
|
||||
insmod font
|
||||
|
||||
if loadfont "(${voidlive}/boot/grub/fonts/unicode.pf2" ; then
|
||||
insmod gfxterm
|
||||
set gfxmode="auto"
|
||||
|
||||
terminal_input console
|
||||
terminal_output gfxterm
|
||||
|
||||
insmod png
|
||||
background_image "(${voidlive})/boot/isolinux/@@SPLASHIMAGE@@"
|
||||
fi
|
||||
|
||||
if [ cpuid -l ]; then
|
||||
menuentry "Void GNU/Linux @@KERNVER@@ (@@ARCH@@)" {
|
||||
set gfxpayload="keep"
|
||||
linux (${voidlive})/boot/vmlinuz \
|
||||
root=live:CDLABEL=VOID_LIVE ro rootfstype=auto liveimg \
|
||||
rd.luks=0 rd.md=0 rd.dm=0 loglevel=4 gpt add_efi_memmap \
|
||||
vconsole.keymap=@@KEYMAP@@ vconsole.unicode=1 locale.LANG=@@LOCALE@@
|
||||
initrd (${voidlive})/boot/initrd.lz
|
||||
}
|
||||
fi
|
Reference in New Issue
Block a user