This commit is contained in:
Michel Le Cocq 2020-06-23 06:59:24 +02:00
parent 9f26e70e8c
commit 52a8c10954

View File

@ -9,13 +9,13 @@ 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
mkswap /dev/mapper/mkswap /dev/mapper/cryptswap
~~~
edit : /etc/default/grub
~~~
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/mapper/swapDevice"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUUUUUU"
~~~
~~~
@ -25,13 +25,13 @@ update-grub
Now ajust /etc/fstab to use your mapper, replace your encrypt swap device like bellow :
~~~
/dev/nvme0n1p2 none swap discard 0 0
/dev/mapper/cryptswap none swap discard 0 0
~~~
remove your encrypt swap device define in /etc/crypttab
add your encrypt swap device define in /etc/crypttab
~~~
swapDevice /dev/nvme0n1p2 none luks
cryptswap /dev/nvme0n1p2 none luks
~~~
~~~