* docs/grub.cfg: Update.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-05-04 00:30:15 +02:00
parent ebb7307695
commit 19424d942b
2 changed files with 23 additions and 18 deletions

View File

@ -1,3 +1,7 @@
2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
* docs/grub.cfg: Update.
2012-05-04 Vladimir Serbinenko <phcoder@gmail.com> 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
* docs/grub.texi (PXE): Remove not present variables. * docs/grub.texi (PXE): Remove not present variables.

View File

@ -5,15 +5,22 @@
# Boot automatically after 30 secs. # Boot automatically after 30 secs.
set timeout=30 set timeout=30
# By default, boot the first entry. # By default, boot the GNU/Linux
set default=0 set default=gnulinux
# Fallback to the second entry. # Fallback to GNU/Hurd.
set fallback=1 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 # For booting GNU/Hurd
menuentry "GNU (aka GNU/Hurd)" { menuentry "GNU (aka GNU/Hurd)" --id gnuhurd {
set root=(hd0,1) set root=(hd0,msdos1)
multiboot /boot/gnumach.gz root=device:hd0s1 multiboot /boot/gnumach.gz root=device:hd0s1
module /hurd/ext2fs.static ext2fs --readonly \ module /hurd/ext2fs.static ext2fs --readonly \
--multiboot-command-line='${kernel-command-line}' \ --multiboot-command-line='${kernel-command-line}' \
@ -24,41 +31,35 @@ menuentry "GNU (aka GNU/Hurd)" {
module /lib/ld.so.1 exec /hurd/exec '$(exec-task=task-create)' module /lib/ld.so.1 exec /hurd/exec '$(exec-task=task-create)'
} }
# For booting GNU/Linux
menuentry "GNU/Linux" {
set root=(hd0,1)
linux /vmlinuz root=/dev/sda1
initrd /initrd.img
}
# For booting FreeBSD # For booting FreeBSD
menuentry "FreeBSD (or GNU/kFreeBSD), direct boot" { menuentry "FreeBSD (or GNU/kFreeBSD), direct boot" {
set root=(hd0,1,a) set root=(hd0,msdos1,bsd1)
kfreebsd /boot/kernel/kernel kfreebsd /boot/kernel/kernel
kfreebsd_loadenv /boot/device.hints kfreebsd_loadenv /boot/device.hints
kfreebsd_module /boot/splash.bmp type=splash_image_data kfreebsd_module /boot/splash.bmp type=splash_image_data
set kFreeBSD.vfs.root.mountfrom=ufs:ad0s1a set kFreeBSD.vfs.root.mountfrom=ufs:ad0s1a
} }
menuentry "FreeBSD (or GNU/kFreeBSD), via /boot/loader" { menuentry "FreeBSD (or GNU/kFreeBSD), via /boot/loader" {
set root=(hd0,1,a) set root=(hd0,msdos1,bsd1)
kfreebsd /boot/loader kfreebsd /boot/loader
} }
# For booting NetBSD # For booting NetBSD
menuentry "NetBSD" { menuentry "NetBSD" {
set root=(hd0,1,a) set root=(hd0,netbsd1)
knetbsd /netbsd knetbsd /netbsd
} }
# For booting OpenBSD # For booting OpenBSD
menuentry "OpenBSD" { menuentry "OpenBSD" {
set root=(hd0,1,a) set root=(hd0,openbsd1)
kopenbsd /bsd kopenbsd /bsd
} }
# For booting Microsoft Windows # For booting Microsoft Windows
menuentry "Microsoft Windows" { menuentry "Microsoft Windows" {
set root=(hd0,1) set root=(hd0,msdos1)
chainloader +1 chainloader +1
} }