Hi,
I work for a company using Ubuntu LTS for developers, and we are using LVM and LUKS in a dual boot with Windows 10/11. Up until 22.04, this worked with manual installations, but as of 24.04, due to installer limitation, we are forced to work with autoinstall yaml configuration instead, due to our LVM setup.
I have been able to get a working LVM/LUKS configuration for pure Ubuntu machines, but when I try to do the same with Windows preinstalled, using preserve - the windows and EFI drives are preserved, but os-prober is not run (I guess since it is deactivated by default), and when activating os-prober after booting into the fresh install, no windows are detected by os-prober.
How can I make autoinstall turn on os-prober and detect an UEFI installed windows partition?
I am not able to find any information on how to configure grub/os-prober, or how to correctly preserve windows in any official documentation, nor on google, so I hope someone here are able to help me. Any help would be greatly appreciated.
My current config looks like the following:
Code:
storage:
config:
- id: disk-system
type: disk
ptable: gpt
path: /dev/nvme0n1
preserve: true
- id: part-efi
type: partition
number: 1
device: disk-system
size: 100M
flag: boot
grub_device: true
preserve: true
- id: msr-partition
type: partition
number: 2
device: disk-system
flag: msftres
size: 16M
preserve: true
- id: part1
type: partition
number: 3
device: disk-system
grub_device: false
size: 125358137856
preserve: true
- id: part-boot
type: partition
number: 4
device: disk-system
size: 1G
- id: part-encrypted
type: partition
number: 5
device: disk-system
size: -1
- id: dm-encrypted
type: dm_crypt
volume: part-encrypted
key: "REDACTED"
- id: vg-linsys
type: lvm_volgroup
name: linsys
devices:
- dm-encrypted
- id: lv-swap
type: lvm_partition
name: swap
size: 8G
volgroup: vg-linsys
- id: lv-root
type: lvm_partition
name: root
volgroup: vg-linsys
size: -1
- id: format-efi
type: format
volume: part-efi
fstype: fat32
- id: format-boot
type: format
volume: part-boot
fstype: ext4
- id: format-root
type: format
volume: lv-root
fstype: ext4
- id: format-swap
type: format
volume: lv-swap
fstype: swap
- id: mount-root
type: mount
device: format-root
path: /
- id: mount-swap
type: mount
device: format-swap
path: none
- id: mount-boot
type: mount
device: format-boot
path: /boot
- id: mount-efi
type: mount
device: format-efi
path: /boot/efi
Bookmarks