Merge pull request #73 from herimedia/niels/btrfs-compatibility

Allow for the container's disk to live in BTRFS storage
This commit is contained in:
Elton Renda 2022-03-30 16:40:27 +02:00 committed by GitHub
commit 0e4df5d5d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -142,7 +142,7 @@ pveam download $_storage_template $_template &>/dev/null \
# Create variables for container disk
_storage_type=$(pvesm status -storage $_storage 2>/dev/null | awk 'NR>1 {print $2}')
case $_storage_type in
dir|nfs)
btrfs|dir|nfs)
_disk_ext=".raw"
_disk_ref="$_ctid/"
;;