parent
3be5cd39bc
commit
311ace56f1
@ -30,13 +30,13 @@ cryptsetup open /dev/nvme0n1p2 cryptswap
|
|||||||
mkswap /dev/mapper/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
|
/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
|
cryptswap /dev/nvme0n1p2 none luks
|
||||||
@ -48,7 +48,7 @@ cryptswap /dev/nvme0n1p2 none luks
|
|||||||
swapon -a
|
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
|
printf "RESUME=UUID=/dev/mapper/cryptswap" | tee /etc/initramfs-tools/conf.d/resume
|
||||||
|
Loading…
Reference in New Issue
Block a user