From d6cac43f608f370043dbcb0fb482f9fa71976e54 Mon Sep 17 00:00:00 2001 From: Michel Le Cocq Date: Sun, 21 Jun 2020 13:19:14 +0200 Subject: [PATCH] --- XPS-13-7390-2-in-1--.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/XPS-13-7390-2-in-1--.md b/XPS-13-7390-2-in-1--.md index 62800aa..b119079 100644 --- a/XPS-13-7390-2-in-1--.md +++ b/XPS-13-7390-2-in-1--.md @@ -62,6 +62,13 @@ zfs change-key rpool ## create swap partition to permit Hibernate +add theses 2 lines in + +~~~ +MEMSIZE=$(cat /proc/meminfo | grep MemTotal | awk -F' ' '{print $2}') +SWAPVOLSIZE=$(( MEMSIZE / 1024 )) +~~~ + ~~~ # Convert to MiB to align the size on the size of a block SWAPVOLSIZE=$(( SWAPSIZE / 1024 / 1024 ))