///
This commit is contained in:
parent
68e07d5703
commit
13aa7a28d9
@ -9,13 +9,15 @@ apt-get install ecryptfs-utils
|
|||||||
swapoff -a
|
swapoff -a
|
||||||
cryptsetup luksFormat --cipher aes-xts-plain64 --verify-passphrase --key-size 256 /dev/nvme0n1p2
|
cryptsetup luksFormat --cipher aes-xts-plain64 --verify-passphrase --key-size 256 /dev/nvme0n1p2
|
||||||
cryptsetup open /dev/<device> cryptswap
|
cryptsetup open /dev/<device> cryptswap
|
||||||
mkswap /dev/mapper/mkswap /dev/mapper/cryptswap
|
mkswap /dev/mapper/cryptswap
|
||||||
|
Configure l'espace d'échange (swap) en version 1, taille = 31,1 GiB (33420210176 octets)
|
||||||
|
pas d'étiquette, UUID=4fd1ffc-6d5b-450a-9737-abf1ffb80b1
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
edit : /etc/default/grub
|
edit : /etc/default/grub
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUUUUUU"
|
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=4fd1ffc-6d5b-450a-9737-abf1ffb80b1"
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
@ -38,6 +40,12 @@ cryptswap /dev/nvme0n1p2 none luks
|
|||||||
swapon -a
|
swapon -a
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
/!\ ici faut trouver comment on recupere le blkid de la partition swap
|
||||||
|
|
||||||
|
~~~
|
||||||
|
printf "RESUME=UUID=/dev/mapper/cryptswap" | tee /etc/initramfs-tools/conf.d/resume
|
||||||
|
~~~
|
||||||
|
|
||||||
Register these changes.
|
Register these changes.
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
|
Loading…
Reference in New Issue
Block a user