/
grub.cfg
79 lines (67 loc) · 1.88 KB
/
grub.cfg
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#
# ### !!! WARNING - READ ME !!! ###
#
# DO NOT edit this file. This file has been generated automatically by the loader generator.
# If you were asked to use a pre-made image and asked by someone to edit this file DO NOT do it. The only
# supported method of obtaining the loader image is generating it using the loader generator provided.
#
terminal_output console
if serial --unit=0 --speed=115200; then
terminal_input --append serial_com0
terminal_output --append serial_com0
fi
set default="0"
set timeout="5"
set timeout_style="menu"
if [ -s $prefix/grubenv ]; then
load_env --file $prefix/grubenv --skip-sig
set has_env="1"
if [ -n "${saved_entry}" ]; then
set default="0"
fi
else
set has_env="0"
echo "WARN: failed to load env. Default choice will NOT be saved!"
fi
function savedefault {
saved_entry="${chosen}"
save_env --file $prefix/grubenv saved_entry
}
insmod usb_keyboard
insmod part_msdos
insmod ext2
insmod fat
insmod linux
insmod gzio
set gfxmode=auto
insmod vbe
insmod vga
# UEFI
insmod efi_gop
insmod efi_uga
insmod font
if loadfont ${prefix}/unicode.pf2
then
insmod gfxterm
set gfxmode=auto
set gfxpayload=keep
terminal_output gfxterm
fi
menuentry 'Tiny Core Friend DS3622xs+ 7.2.1-69057 Update 0 DDSML' {
savedefault
search --set=root --fs-uuid 6234-C863 --hint hd0,msdos3
echo Loading Linux...
linux /bzImage-friend loglevel=3 waitusb=5 vga=791 net.ifnames=0 biosdevname=0
echo Loading initramfs...
initrd /initrd-friend
echo Booting TinyCore Friend
}
menuentry 'Tiny Core Image Build' {
savedefault
search --set=root --fs-uuid 6234-C863 --hint hd0,msdos3
echo Loading Linux...
linux /vmlinuz64 loglevel=3 cde waitusb=5 vga=791
echo Loading initramfs...
initrd /corepure64.gz
echo Booting TinyCore for loader creation
}