Merge remote-tracking branch 'flapflap/de-network_configuration'
[tails-test.git] / wiki / src / blueprint / UEFI / GRUB.mdwn
blob6bfeec59a3490fb14745d6fd1b913b71605e4404
1 Prerequisite: Tails with an amd64 kernel (e.g. from current
2 experimental branch).
4 Tested with grub-efi 2.00-22 from Debian unstable.
6         sudo apt-get install grub-efi-amd64-bin
8         # make the system partition an *EFI System Partition* (ESP)
9         parted "$TAILS_DEVICE" set 1 boot on
11         MODULES="
12            all_video
13            bitmap
14            bitmap_scale
15            boot
16            btrfs
17            bufio
18            cat
19            chain
20            configfile
21            crypto
22            echo
23            efifwsetup
24            efi_gop
25            efinet
26            efi_uga
27            ext2
28            extcmd
29            fat
30            font
31            gettext
32            gfxmenu
33            gfxterm
34            gzio
35            halt
36            hfsplus
37            iso9660
38            jpeg
39            keystatus
40            linux
41            linuxefi
42            loadenv
43            memdisk
44            minicmd
45            normal
46            part_apple
47            part_gpt
48            part_msdos
49            password_pbkdf2
50            png
51            read
52            reboot
53            search
54            search_fs_file
55            search_fs_uuid
56            search_label
57            sleep
58            terminal
59            test
60            trig
61            video
62            video_fb
63         "
65         mkdir -p "$TAILS_MOUNTPOINT"/{boot/grub,EFI/BOOT} && \
66            grub-mkimage --output="$TAILS_MOUNTPOINT"/EFI/BOOT/bootx64.efi \
67               --format x86_64-efi $MODULES
69         cat > "$TAILS_MOUNTPOINT"/boot/grub/grub.cfg <<EOF
70         menuentry Tails --class start {
71                 echo $"Loading Tails..."
72                 linux /live/vmlinuz2 initrd=/live/initrd2.img boot=live config live-media=removable nopersistent noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 splash nox11autologin module=Tails quiet
73                 initrd /live/initrd2.img
74         }
75         EOF
77 * boots on ThinkPenguin Royal
78 * boots on Macbook 13-inch Mid-2012 with rEFInd; one has to choose
79   *Fallback boot loader from Tails* in rEFInd, *Boot Linux from Tails*
80   does nothing at all