This commit is contained in:
Michel Le Cocq 2020-06-24 08:34:47 +02:00
parent 3be5cd39bc
commit 311ace56f1

View File

@ -30,13 +30,13 @@ cryptsetup open /dev/nvme0n1p2 cryptswap
mkswap /dev/mapper/cryptswap
~~~
* ajust /etc/fstab to use your mapper, replace your encrypt swap device like bellow :
* ajust **/etc/fstab** to use your mapper, replace your encrypt swap device like bellow :
~~~
/dev/mapper/cryptswap none swap discard 0 0
~~~
* add your encrypt swap device define in /etc/crypttab
* add your encrypt swap device define in **/etc/crypttab**
~~~
cryptswap /dev/nvme0n1p2 none luks
@ -48,7 +48,7 @@ cryptswap /dev/nvme0n1p2 none luks
swapon -a
~~~
* edit /etc/initramfs-tools/conf.d/resume. Replace the existing RESUME line with the following line.
* edit **/etc/initramfs-tools/conf.d/resume**. Replace the existing **RESUME** line with the following line.
~~~
printf "RESUME=UUID=/dev/mapper/cryptswap" | tee /etc/initramfs-tools/conf.d/resume