Remove printing of swap status

This commit is contained in:
thorstenspille 2023-10-03 15:50:32 +02:00
parent 8fee5bcb2f
commit a2272055f1

View File

@ -487,7 +487,7 @@ EOF
} }
create_swap_pool(){ create_swap_pool(){
if ! pvesm status | grep swap; then if ! pvesm status | grep swap > /dev/null; 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