From 0c976ae037077ebbcbca8770d6aab28076ff046c Mon Sep 17 00:00:00 2001 From: Michel Le Cocq Date: Tue, 23 Jun 2020 09:56:22 +0200 Subject: [PATCH] ajustement apres comprehension initramfs /etc/default/greu resume --- encrypt-swap-Ubuntu-20.04.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/encrypt-swap-Ubuntu-20.04.md b/encrypt-swap-Ubuntu-20.04.md index 6424bc2..a5bbde0 100644 --- a/encrypt-swap-Ubuntu-20.04.md +++ b/encrypt-swap-Ubuntu-20.04.md @@ -12,10 +12,12 @@ cryptsetup open /dev/ cryptswap mkswap /dev/mapper/cryptswap ~~~ -edit : /etc/default/grub +/!\ le point ci-dessous est sans doute inutile + +* Change your /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT to remove resume part wich is now manage by initramfs ~~~ -GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=4fd1ffc-6d5b-450a-9737-abf1ffb80b1" +GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" ~~~ ~~~ @@ -63,6 +65,12 @@ cryptsetup: WARNING: Couln't determine root device swapoff /dev/mapper/cryptswap1 ~~~ +* Undo the existing mapping. + +~~~ +cryptsetup luksClose /dev/mapper/cryptswap +~~~ + * remove your encrypt swap device define in your /etc/crypttab * ajust /etc/fstab to use your real swap partition @@ -71,7 +79,9 @@ swapoff /dev/mapper/cryptswap1 /dev/nvme0n1p2 none swap discard 0 0 ~~~ -* Change your /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT to +/!\ le point ci-dessous est sans doute inutile + +* Change your /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT to point to your real partition ~~~ GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/nvme0n1p2"