on my company laptop I have Windows 11, that has encrypted disk, working hibernate, at I need to provide password just once at log-in. I would like to have same on my personal laptop with Ubuntu. RN I have Ubuntu 20.04. with some mess in it, so I would like to do clean install of Ubuntu 22.04. and want to know what is best and easiest way to encrypt partitions (LUKS, or maybe something else?) that will allow me to skip GRUB, and would unlock disk/partitions at log-in with login password. At the same time I would need / require a working hibernate. Note that I don't use SWAP file but partition.
RN I use this configuration for hibernation:
https://gist.github.com/Mlocik97/5936fa55d4971f05c6a1c0fb10c4c9bb
aka I set sudo gedit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla file with content:
[Enable hibernate in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
[Enable hibernate in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes
But it works because I don't have SWAP encrypted. I set resume param like GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/nvme0n1p3" in /etc/default/grub file, but now when I turn on computer, GRUB menu shows, even tho Ubuntu is only system on my personal laptop, and I would like to skip that step.
I tried in VMs (QEMU/KVM) to install Ubuntu 22.04. with encrypted virtual disk (LUKS), that installer gave me as option on LVM partitions, but when I did it, I needed to give it password twice, once for unlocking disk/partitions, and second time at login, I think it's annoying and would like if I could give it password just once.
So I'm solving two problems, making hibernate works with encrypted SWAP, and unlock of partitions works with login password. Can someone help me, please?