canonical / autoinstall-desktop

67 stars 20 forks source link

apt remove ubuntu-server #9

Open bash-bandicoot opened 1 year ago

bash-bandicoot commented 1 year ago

Per documentation "curtin in-target -- apt-get remove -y ubuntu-server" will remove the cryptsetup! If the OS was installed with LUKS encryption, this command will make the OS unbootable as no cryptsetup to decrypt the disk.... As a result fault state of OS

charlie-haley commented 1 year ago

If it's any help, to use LUKS I simply reinstalled all the packages removed by ubuntu-server as part of the late-commands in the autoinstall config

- curtin in-target -- apt-get install -y cloud-init cryptsetup lvm2 btrfs-progs xfsprogs
bash-bandicoot commented 1 year ago

Good one! However, since the base installation is server, removing this package can break other things as well, no?

charlie-haley commented 1 year ago

It shouldn't break anything else, I'm currently using it with LUKS and Ubuntu Desktop and having no issues

bash-bandicoot commented 1 year ago

I've verified, all clear. Thanks, @charlie-haley ! Moving to prod :)