This commit is contained in:
Michel Le Cocq 2020-06-21 13:19:14 +02:00
parent c5d0458347
commit d6cac43f60

View File

@ -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 ))