Since I'll have to deal with Ubuntu clients mass deployments in the future, I was searching for methods to achieve an unattended setup. My current idea is to use something like kickstart or https://ubuntu.com/server/docs/install/autoinstall and to use ansible after the initial deployment.
One key requirement would be to encrypt the root partition during the setup.
Since autoinstallation seems to be the new standard for 20.04 and I didn't find anything concerning LUKS in the reference, I wanted to ask if someone knows whether LUKS can be used with autoinstallation?
If not: would kickstart be the way to go?
Creating an answer - thanks @Kulfy for your remark.
Solved by going through the interactive installer. After that, the yaml was available under
/var/log/installer
:As far as the storage section is concerned, the file contained the following lines:
I've also successfully used the generated lines in an unattended setup.