2026-10-06 22:33 UTC
Replies (6)
-
@Flyswat@lemmy.dbzer0.com 2026-10-06 22:56
Why binding specifically to PCRs 1,4,5 and 7? Are they immutable even with updates that modify bd and dbx (I think I saw one recently drop on Ubuntu)?
-
@Ooops@feddit.org 2026-10-06 23:11
Wild guess as I’m not using dacut and have only setup encrypted hibernation on an old bios laptop… But did you edit the systemd-sleep.conf (usually /etc/systemd/sleep.conf, although there are some other possible location)? The other old-school and universal way of telling your system that hibernate is enabled without systemd would be a resume= kernel parameter
-
@Corngood@lemmy.ml 2026-10-06 23:24
I’ve got multiple machines that do this, but all on nixos. After completing the below, entering systemctl hibernate errors saying hibernation is not set up for the system. This is weird, so I’d start here. Can you get the exact error and/or whatever it logs to journald? I’d ignore all the TPM stuff until you can hibernate it and resume with a password. Maybe the swap is just too small? Maybe something in /etc/systemd/sleep.conf? In case it helps, my device setup looks like this: NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS nvme0n1 crypto_LUKS 2 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx └─encrypted LVM2_member LVM2 001 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ├─encrypted-swap swap 1 swap xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx [SWAP] └─encrypted-root btrfs root xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxx xxx /mnt/root /nix/store / nvme1n1 ├─nvme1n1p1 vfat FAT32 xxxxxxxxx xxxxx xxx /boot [...] so luks -> lvm -> { swap, btrfs }
-
@moonpiedumplings@programming.dev 2026-10-07 02:43
I don’t have/use TPM, but I do have encrypted swap and hibernation on a fully encrypted drive. The trick is to put the kernels in the root partition, which is encrypted by LUKS. Then, you can also put a swapfile in that same partition. The only unencrypted part of my system is /boot/etfi, which is the EFI partition that holds nothing but the grub binary. Grub configs and kernels are in /boot, which is on the root partition, and encrypted in LUKS. Grub automatically scans hard drives, before prompting with a password to decrypt the root and everything on it. Because grub is doing the decryption, rather than the kernels, the kernels and swapfile are decrypted all at once.
-
@BCsven@lemmy.ca 2026-10-07 03:36
Did you do this ? Get the UUID of swap partion then add it to boot parameter(resume=UUID=xxxx) System needs that in grub line so it knows where to put the hibernation stuff, and obcciousky swap has to be equal or larger than RAM amount.
-
@mlg@lemmy.world 2026-10-07 10:53
I actually just did this recently with a BTRFS subvolume using a swap file and LUKS encryption. The old Fedora magazine article has the overall steps required and someone also made a guide for secure boot on I think the spiceworks forum. The catch is that secure boot will only allow signed images to be loaded which includes the hibernation swap image, meaning you have to use a customized kernel that allows unsigned hibernation images to load.