This commit is contained in:
		| @ -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 )) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user