diff options
author | Simon Rettberg | 2021-04-15 11:03:36 +0200 |
---|---|---|
committer | Simon Rettberg | 2021-04-15 11:03:36 +0200 |
commit | b338b8c1a7a5442a02c67aa40c22b1c77b2b5925 (patch) | |
tree | 3205f06ecb4a8c06b9c4f7cbe449944b9445652a | |
parent | [slx-tools] pin slx-tools git "version".... (diff) | |
download | systemd-init-downloader.tar.gz systemd-init-downloader.tar.xz systemd-init-downloader.zip |
[slx-dmsetup] Handle "always"downloader
-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 |