And what about when a notebook is encrypted?
And what about when a notebook is encrypted?
Posted Sep 18, 2018 18:40 UTC (Tue) by derobert (subscriber, #89569)In reply to: And what about when a notebook is encrypted? by mageta
Parent article: Fedora reawakens the hibernation debate
So you can have:
/dev/sda1 EFI system partition / BIOS boot area (depending on if using EFI boot)
/dev/sda2 LUKS → LVM → /boot, /, swap, etc.
and Grub knows how to ask for the LUKS passphrase, decrypt it, find the LV for / or /boot and load the kernel and initramfs from that. It then boots the initramfs, which can have a keyscript or file on it (since, remember, the initramfs is encrypted) which lets the initramfs open the LUKS volume, set up LVM and (at least on Debian) resume from hibernate to that encrypted swap. This setup does require a little bit of config file editing; Debian-Installer will not set it up for you (mainly, it doesn't know the set the flag in the Grub config to enable LUKS) — other than that, it leaves you with an enter-passphrase-twice setup, then you set up a keyscript or file to fix that.
My experience with hibernation is it just works, though that's on Debian. Which, as noted, uses a different initramfs system.
