Fix swap creation

This commit is contained in:
thorstenspille 2023-10-03 15:16:25 +02:00
parent 9f5c44029b
commit 601eb5c7e4

View File

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