summaryrefslogtreecommitdiff
path: root/grub.mdwn
blob: 8cbfcde755680a2cba2711df7e6afde96fcc105a (plain)
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
<http://www.gnu.org/software/grub/>

GRUB is the bootloader of the GNU system, and it's currently the only one that
supports the multiboot standard, necessary to boot the Hurd.

  * `update-grub` is *Debian specific* and very useful.  It will automatically
    create a `/boot/grub/grub.cfg` file for the kernels in `/boot/` and for
    OSes that it finds on various partitions, including GNU/Hurd.

  * Make sure that GRUB 2's version is at least 20091130 and GNU Mach's version
    is at least 20091020.

  * Sample file:
    
        menuentry "GNU/Linux" {
            insmod ext2
            set root=(hd0,12)
            linux      /boot/vmlinuz-2.6.32 root=/dev/hda12 ro
            initrd     /boot/initrd.img-2.6.32
        }
        
        menuentry "GNU" {
            insmod ext2
            set root=(hd0,16)
            multiboot /boot/gnumach.gz root=device:hd0s16
            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)'
        }