This commit is contained in:
parent
c5d0458347
commit
d6cac43f60
@ -62,6 +62,13 @@ zfs change-key rpool
|
|||||||
|
|
||||||
## create swap partition to permit Hibernate
|
## 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
|
# Convert to MiB to align the size on the size of a block
|
||||||
SWAPVOLSIZE=$(( SWAPSIZE / 1024 / 1024 ))
|
SWAPVOLSIZE=$(( SWAPSIZE / 1024 / 1024 ))
|
||||||
|
Loading…
Reference in New Issue
Block a user