This commit is contained in:
Michel Le Cocq 2020-06-22 14:51:50 +02:00
parent 055536ae8b
commit 74247e2c94

View File

@ -107,12 +107,14 @@ HandleLidSwitch=suspend-then-hibernate
apt-get install ecryptfs-utils
swapoff -a
cryptsetup luksFormat --cipher aes-xts-plain64 --verify-passphrase --key-size 256 /dev/nvme0n1p2
cryptsetup open /dev/<device> swapDevice
mkswap /dev/mapper/mkswap /dev/mapper/swapDevice
~~~
edit : /etc/default/grub
~~~
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/mapper/cryptswap1"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/mapper/cryptswap"
~~~
~~~