I have an unencrypted Ubuntu 16.04 setup using LVM2. I'd like to 'port' this into an encrypted setup on the same computer and disk, which would save me the hassle of reinstalling all the apps and redoing the various settings.
Will the following work?
Make dd backups of the logical volumes - lvroot, lvhome (no swap)
fresh install of Ubuntu, with LVM sitting on top of LUKS.
The logical volumes lvroot and lvhome on the new encrypted install will be at least as large as the corresponding volumes on the old unencrypted install.
restore via dd the backups of lvroot and lvhome