uefi, bios, gpt+lvm config
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
New
|
Undecided
|
Unassigned |
Bug Description
Hello,
Im trieing to archive an configuration which is using GPT (including LVM) which is bootable via BIOS/UEFI.
Currently im having this config here:
# user-data
autoinstall:
version: 1
storage:
grub:
reorder_uefi: false
swap:
size: 0
config:
- {ptable: gpt, preserve false, name: '', grub_device: true, type: disk, id: biggestDisk, wipe: superblock-
- {device: biggestDisk, size: 512MB, flag: boot, number: 1, preserve: false, grub_device: true, type: partition, id: biggestDiskPart
- {fstype: vfat, volume: biggestDiskPart
- {device: biggestDisk, size: 1024MB, flag: bios_grub, number: 2, preserve: false, grub_device: false, type: partition, id: biggestDiskPart
- {fstype: ext4, volume: biggestDiskPart
- {device: biggestDisk, size: -1, flag: linux, number: 3, preserve: false, type: partition, id: biggestDiskPart
- {name: ubuntu-vg, devices: [biggestDiskPar
- {name: lv-root, volgroup: biggestDiskVolg
- {fstype: ext4, volume: lvm-partition-
- {device: format-root, path: /, type: mount, id: mount-2}
- {device: format-bios, path: /boot, type: mount, id: mount-1}
- {device: format-efi, path: /boot/efi, type: mount, id: mount-3}
This one works completely out using an EFI system.
Installing this config on an BIOS system, it runs completely through the installer but after the 'grub install stage' it complains with:
-------
Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
TIMED subp(['udevadm', 'settle']): 0.018
Running command ['umount', '/target/sys'] with allowed return codes [0] (capture=False)
Running command ['umount', '/target/run'] with allowed return codes [0] (capture=False)
Running command ['umount', '/target/proc'] with allowed return codes [0] (capture=False)
Running command ['umount', '/target/dev'] with allowed return codes [0] (capture=False)
finish: cmd-install/
finish: cmd-install/
finish: cmd-install/
Traceback (most recent call last):
File "/snap/
ret = args.func(args)
File "/snap/
File "/snap/
File "/snap/
File "/snap/
File "/snap/
return subp(*args, **kwargs)
File "/snap/
return _subp(*args, **kwargs)
File "/snap/
Command: ['unshare', '--fork', '--pid', '--', 'chroot', '/target', 'grub-install', '/dev/vda1']
Exit code: 1
Reason: -
Stdout: ''
Stderr: Installing for i386-pc platform.
Unexpected error while running command.
Command: ['unshare', '--fork', '--pid', '--', 'chroot', '/target', 'grub-install', '/dev/vda1']
Exit code: 1
Reason: -
Stdout: ''
Stderr: Installing for i386-pc platform.
-------
setting grub_device to false for 'biggestDiskPar
Any idea how to fix this / getting a config which works for both worlds (EFI+BIOS)?
Found here an example which is similar to mine:
https:/ /gist.github. com/bitsandbook s/6e73ec61a44d9 e17e1c21b3b8a0a 9d4c
Sadly this one doesn't work as well for BIOS boot method...
Using the mentioned config, the autoinstaller complains with:
"autoinstall config did not create needed bootloader partition"
which im sometimes running into as well..
Looking forward to a solution also will further invest some time into the issue..