I have read through the curtin and autoinstall documentation and can't wrap my head around why this autoinstall script is working on my development laptop but not my vbox install (ver 7.0.8 on Ubuntu host). At first I thought the problem was references to /dev/mmcblk0
(virtualbox uses /dev/sda
) but after making a number of different configs I don't think this is actually the problem because of the error message this gives. The is autoinstall config did not create needed bootloader partition
My theory is that this autoinstall works on the laptop because the laptop is UEFI but not on Virtualbox because it is not. I have found some suggestions elsewhere on how to make an autoinstall that works for UEFI work on MBR, but none that are able to do both.
Is that the problem with this autoinstall partitioning layout? Is there any solution? I can't use the built-in layouts (lvm etc) due to this project's specific requirements. I realize I could change the Virtualbox settings to EFI boot, but this ISO will have to be installed on a wide variety of machines some of which may not support EFI.
Here is my current partitioning layout, which is working on a laptop with a device at /dev/mmcblk0
How does this script need to be modified to work on any system? And yes, the /boot partition really does need to be that large for this setup.
autoinstall:
version: 1
storage:
config:
- ptable: gpt
wipe: superblock-recursive
preserve: false
name: ''
grub_device: false
type: disk
id: disk-mmcblk0
match:
size: largest
- device: disk-mmcblk0
size: 1127219200
wipe: superblock
flag: boot
number: 1
preserve: false
grub_device: true
type: partition
id: partition-0
- fstype: fat32
volume: partition-0
preserve: false
type: format
id: format-0
- device: disk-mmcblk0
size: 5GB
wipe: superblock
number: 2
preserve: false
type: partition
id: partition-1
- fstype: ext4
volume: partition-1
preserve: false
type: format
id: format-1
- device: disk-mmcblk0
size: -1
wipe: superblock
number: 3
preserve: false
type: partition
id: partition-2
- volume: partition-2
key: password
path: /dev/mapper/dm_crypt-0
preserve: false
type: dm_crypt
id: dm_crypt-0
- name: ubuntu-vg
devices:
- dm_crypt-0
preserve: false
type: lvm_volgroup
id: lvm_volgroup-0
- name: ubuntu-lv
volgroup: lvm_volgroup-0
size: -1
wipe: superblock
preserve: false
path: /dev/ubuntu-vg/ubuntu-lv
type: lvm_partition
id: lvm_partition-0
- fstype: btrfs
volume: lvm_partition-0
preserve: false
type: format
id: format-2
- path: /
device: format-2
type: mount
id: mount-2
options: 'noatime,discard,compress=zstd:1'
- path: /boot
device: format-1
type: mount
id: mount-1
- path: /boot/efi
device: format-0
type: mount
id: mount-0