Update proxmox-zfs-postinstall.sh

This commit is contained in:
Simon Hoffmann 2023-10-14 10:00:47 +02:00 committed by GitHub
parent 31be2d6e2a
commit 5e09ee39e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -238,7 +238,7 @@ for interval in "${!auto_snap_keep[@]}"; do
done done
if [ $swapfile_userinput_bool -eq "y" ]; then if [ $swapfile_userinput_bool == "y" ]; then
echo "Creating swapfile" echo "Creating swapfile"
zfs create -V ${swapfile_size}G -b $(getconf PAGESIZE) -o logbias=throughput -o sync=always -o primarycache=metadata -o com.sun:auto-snapshot=false rpool/$swapfile_name zfs create -V ${swapfile_size}G -b $(getconf PAGESIZE) -o logbias=throughput -o sync=always -o primarycache=metadata -o com.sun:auto-snapshot=false rpool/$swapfile_name
echo "Formatting swapfile" echo "Formatting swapfile"