File: grub.cfg

package info (click to toggle)
grub2 2.02%2Bdfsg1-20
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 61,784 kB
  • sloc: ansic: 384,086; asm: 16,323; sh: 13,230; cpp: 1,994; makefile: 1,488; python: 1,458; sed: 423; lex: 393; yacc: 267; awk: 75; lisp: 50; perl: 31
file content (76 lines) | stat: -rw-r--r-- 1,705 bytes parent folder | download | duplicates (15)
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
#
# Sample GRUB configuration file
#

# Boot automatically after 30 secs.
set timeout=30

# By default, boot the GNU/Linux
set default=gnulinux

# Fallback to GNU/Hurd.
set fallback=gnuhurd

# For booting GNU/Linux
menuentry "GNU/Linux" --id gnulinux {
	set root=(hd0,msdos1)
	linux /vmlinuz root=/dev/sda1
	initrd /initrd.img
}

# For booting GNU/Hurd
menuentry "GNU (aka GNU/Hurd)" --id gnuhurd {
	set root=(hd0,msdos1)
	multiboot /boot/gnumach.gz root=device:hd0s1
	module /hurd/ext2fs.static ext2fs --readonly \
			--multiboot-command-line='${kernel-command-line}' \
			--host-priv-port='${host-port}' \
			--device-master-port='${device-port}' \
			--exec-server-task='${exec-task}' -T typed '${root}' \
			'$(task-create)' '$(task-resume)'
	module /lib/ld.so.1 exec /hurd/exec '$(exec-task=task-create)'
}

# For booting FreeBSD
menuentry "FreeBSD (or GNU/kFreeBSD), direct boot" {
	set root=(hd0,msdos1,bsd1)
	kfreebsd /boot/kernel/kernel
	kfreebsd_loadenv /boot/device.hints
	kfreebsd_module /boot/splash.bmp type=splash_image_data
	set kFreeBSD.vfs.root.mountfrom=ufs:ad0s1a
}

menuentry "FreeBSD (or GNU/kFreeBSD), via /boot/loader" {
	set root=(hd0,msdos1,bsd1)
	kfreebsd /boot/loader
}

# For booting NetBSD
menuentry "NetBSD" {
	set root=(hd0,netbsd1)
	knetbsd /netbsd
}

# For booting OpenBSD
menuentry "OpenBSD" {
	set root=(hd0,openbsd1)
	kopenbsd /bsd
}

# For booting Microsoft Windows
menuentry "Microsoft Windows" {
	set root=(hd0,msdos1)
	chainloader +1
}

# For booting Memtest86+
menuentry "Memtest86+" {
	set root=(hd0,1)
	linux16 /memtest86+.bin
}

# Change the colors.
menuentry "Change the colors" {
	set menu_color_normal=light-green/brown
	set menu_color_highlight=red/blue
}