mirror of
https://github.com/bashclub/proxmox-zfs-postinstall.git
synced 2024-12-25 09:40:12 +01:00
Fix swap creation
This commit is contained in:
parent
9f5c44029b
commit
601eb5c7e4
@ -489,7 +489,7 @@ EOF
|
|||||||
create_swap_pool(){
|
create_swap_pool(){
|
||||||
if ! pvesm status | grep swap; then
|
if ! pvesm status | grep swap; then
|
||||||
if ! zfs list rpool/swap > /dev/null 2>&1 ; then
|
if ! zfs list rpool/swap > /dev/null 2>&1 ; then
|
||||||
zfs create -O com.sun:auto-snapshot=false rpool/swap
|
zfs create -o com.sun:auto-snapshot=false rpool/swap
|
||||||
else
|
else
|
||||||
zfs set com.sun:auto-snapshot=false rpool/swap
|
zfs set com.sun:auto-snapshot=false rpool/swap
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user