I am using a Ubuntu system (19.10) with zfs as the root file system.
I installed the system as a dual-boot system by installing on a smaller disk and transferring the partitions to a larger disk afterwards with Windows partitions already on it, so the gpt partition scheme has the following partitions now:
part 1 - UEFI boot - /boot/efi
part 2 - Grub boot partition - /boot/grub
part 3 - swap
part 4 - zfs boot (bpool)
part 5 - zfs root (rpool)
part 6 - Windows MSR
part 7 - Windows System
part 8 - Windows RE
So, I would like to reinstall the system for unrelated reasons now. I am even willing to test 20.04 if it's more flexible. How can I best reinstall the system? The plain Ubuntu installer doesn't know about zfs, and the zfs option only works on the whole disk.
In other words, I want to install Ubuntu again, with part 3 - 5 open to deletion / formatting, the others should be untouched.
The easiest way to install Ubuntu with root as zfs I have come up with so far is this:
rpool
andbpool
partitions on the VMdd
over network or removable media/etc/fstab
on the physical computer according to the new valuesroot
andlinux
parameters at thegrub>
prompt/boot
and/boot/efi
are mounted correctlygrup-install && reboot
parted
to expand partitions to their full size (or however large you want them to be)zpool online -e
to expand the pools to the full partition size