summaryrefslogtreecommitdiff
path: root/sys/BootSync/prep.txt
blob: 66e2ea46125b0b07fdda5ec12dc12b8abd904264 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
PREPARATION:
0.) Comment out all /boot mounts in /etc/fstab and umount /boot if mounted as a separate mountpoint.
    You want to use *the /boot on your / mount*.

1.) Prepare each target partition (partitions/part below) as an ESP
    (https://wiki.archlinux.org/index.php/EFI_system_partition#Format_the_partition).

2.) Install GRUB2 to *each ESP*. See sample.config.xml for context for the below examples.

  grub-install \
      --boot-directory=/mnt/boot1 \
      --bootloader-id=Arch \
      --efi-directory=/mnt/boot1/ \
      --target=x86_64-efi \
      --no-nvram  \
      --recheck

  grub-install \
      --boot-directory=/mnt/boot1 \
      --bootloader-id="Arch (Fallback)" \
      --efi-directory=/mnt/boot1/ \
      --target=x86_64-efi \
      --no-nvram  \
      --recheck

  grub-install \
      --boot-directory=/mnt/boot2 \
      --bootloader-id=Arch \
      --efi-directory=/mnt/boot2/ \
      --target=x86_64-efi \
      --no-nvram  \
      --recheck

  grub-install \
      --boot-directory=/mnt/boot2 \
      --bootloader-id="Arch (Fallback)" \
      --efi-directory=/mnt/boot2/ \
      --target=x86_64-efi \
      --no-nvram  \
      --recheck

3.) Prepare the ESPs. See sample.config.xml for context for the below examples.

  efibootmgr \
      --create \
      --disk /dev/sdd \
      --part 1 \
      --loader /EFI/Arch/grubx64.efi \
      --label "Arch (Fallback)"

  efibootmgr \
      --create \
      --disk /dev/sdb \
      --part 1 \
      --loader /EFI/Arch/grubx64.efi \
      --label "Arch"