summary refs log tree commit diff
path: root/grub/grub_void.cfg.in
blob: a2cda855ffb1e79bd418138bb510a52c3e78d4d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46

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 "@@BOOT_TITLE@@ @@KERNVER@@ (@@ARCH@@)" {
        set gfxpayload="keep"
        linux (${voidlive})/boot/vmlinuz \
		root=live:CDLABEL=VOID_LIVE ro init=/sbin/init \
		rd.luks=0 rd.md=0 rd.dm=0 loglevel=4 gpt add_efi_memmap \
		vconsole.unicode=1 vconsole.keymap=@@KEYMAP@@ \
		locale.LANG=@@LOCALE@@ @@BOOT_CMDLINE@@
        initrd (${voidlive})/boot/initrd
    }
    menuentry "@@BOOT_TITLE@@ @@KERNVER@@ (@@ARCH@@) (RAM)" {
        set gfxpayload="keep"
        linux (${voidlive})/boot/vmlinuz \
		root=live:CDLABEL=VOID_LIVE ro init=/sbin/init \
		rd.luks=0 rd.md=0 rd.dm=0 loglevel=4 gpt add_efi_memmap \
		vconsole.unicode=1 vconsole.keymap=@@KEYMAP@@ \
		locale.LANG=@@LOCALE@@ @@BOOT_CMDLINE@@ rd.live.ram
        initrd (${voidlive})/boot/initrd
    }
fi