diff options
Diffstat (limited to 'lx-trainer-vm/lx-trainer-vm.xml')
| -rw-r--r-- | lx-trainer-vm/lx-trainer-vm.xml | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/lx-trainer-vm/lx-trainer-vm.xml b/lx-trainer-vm/lx-trainer-vm.xml index 3174038..0dd4750 100644 --- a/lx-trainer-vm/lx-trainer-vm.xml +++ b/lx-trainer-vm/lx-trainer-vm.xml @@ -66,16 +66,29 @@ <passwd>root</passwd> <console>ttyS0,115200</console> <images> - <msdoshd> + <!-- use GPT for UEFI --> + <gpthd> <name>lx-trainer.img</name> <size>16GiB</size> <grub-install/> + <!-- small partition for the MBR + in case of bios boot --> + <partition> + <size>1MiB</size> + <label>bios</label> + <biosgrub>true</biosgrub> + </partition> + <!-- the EFI system partition --> + <partition> + <size>100MiB</size> + <label>uefi</label> + <bootable>true</bootable> + </partition> <partition> <size>remain</size> <label>rfs</label> - <bootable/> </partition> - </msdoshd> + </gpthd> </images> <fstab> <bylabel> @@ -93,6 +106,15 @@ <type>debugfs</type> </fs> </bydev> + <!-- the EFI system partition needs to + be mounted at /boot/efi --> + <bylabel> + <label>uefi</label> + <mountpoint>/boot/efi</mountpoint> + <fs> + <type>vfat</type> + </fs> + </bylabel> </fstab> <finetuning> <!-- install armhf toolchain --> @@ -138,6 +160,9 @@ <rm>var/cache/apt/archives/*.deb</rm> </finetuning> <pkg-list> + <!-- grub-efi-amd64 conflicts with grub-pc, so + install grub-efi-amd64-bin and grub-pc --> + <pkg>grub-efi-amd64-bin</pkg> <pkg>grub-pc</pkg> <pkg>linux-image-amd64</pkg> <pkg>linux-headers-amd64</pkg> |
