diff --git a/postinstall b/postinstall index 0751cdd..d50be63 100755 --- a/postinstall +++ b/postinstall @@ -487,7 +487,7 @@ EOF } 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 zfs create -o com.sun:auto-snapshot=false rpool/swap else