diff options
-rwxr-xr-x | modules.d/slx-dmsetup/scripts/dmsetup-slx-device | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules.d/slx-dmsetup/scripts/dmsetup-slx-device b/modules.d/slx-dmsetup/scripts/dmsetup-slx-device index 8ec27b44..b8d26e0d 100755 --- a/modules.d/slx-dmsetup/scripts/dmsetup-slx-device +++ b/modules.d/slx-dmsetup/scripts/dmsetup-slx-device @@ -415,8 +415,9 @@ create_pool() { # is less than 100GB, and only then consider this feature. # Maybe make that thresold configurable one day, but the the desktop client # use case this is sensible for now. - if [ "$SLX_NTFSFREE" = "backup" ] && (( scratch_device_sz < 209715200 )) \ - && [ -z "$metadata_persistent" ]; then + # TODO: always should be handled differently, but do the same for now + if [[ "$SLX_NTFSFREE" = "backup" || "$SLX_NTFSFREE" = "always" ]] \ + && (( scratch_device_sz < 209715200 )) && [ -z "$metadata_persistent" ]; then find_ntfs_partitions if [ -s "$ntfs_list" ]; then # Look what size we end up if we want at least 50GB |