diff options
author | Simon Rettberg | 2021-04-01 12:05:24 +0200 |
---|---|---|
committer | Simon Rettberg | 2021-04-01 12:05:24 +0200 |
commit | fa6b2143d0036db10cf4da5500cd1d27ec29fbc1 (patch) | |
tree | aa8ecd630ff98159045dd5c93984a4bcc2fd9b7a /core | |
parent | [apply-slx-vars] RefuseManualStart -> [Unit] (diff) | |
download | mltk-fa6b2143d0036db10cf4da5500cd1d27ec29fbc1.tar.gz mltk-fa6b2143d0036db10cf4da5500cd1d27ec29fbc1.tar.xz mltk-fa6b2143d0036db10cf4da5500cd1d27ec29fbc1.zip |
[ntfsfree] dmsetup wait retry, log its output
Diffstat (limited to 'core')
-rwxr-xr-x | core/modules/ntfsfree/data/opt/openslx/scripts/thinpool-grow | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/modules/ntfsfree/data/opt/openslx/scripts/thinpool-grow b/core/modules/ntfsfree/data/opt/openslx/scripts/thinpool-grow index e735fa45..7ed678f7 100755 --- a/core/modules/ntfsfree/data/opt/openslx/scripts/thinpool-grow +++ b/core/modules/ntfsfree/data/opt/openslx/scripts/thinpool-grow @@ -119,7 +119,7 @@ exit_hook() { [ -n "$HAVE_LOCK" ] && unlock } -trap exit_hook EXIT TERM INT +trap exit_hook EXIT # Try to grow via NTFS volume # Must honor and update $current_data_sz, and echo into $new_table @@ -335,7 +335,9 @@ elif [ "$MODE" = "wait" ]; then else (( next++ )) fi - dmsetup wait "$POOL" "$next" || break + dmsetup wait "$POOL" "$next" &>> "$DEBUG_FILE" \ + || dmsetup wait "$POOL" "$next" &>> "$DEBUG_FILE" \ + || break done debug "Error in dmsetup wait" exit 1 |