diff options
author | 2024-07-05 15:32:49 +0200 | |
---|---|---|
committer | 2024-07-05 15:32:49 +0200 | |
commit | 5b23d6421f1157339613f5e2c90cb1c02d11927b (patch) | |
tree | 059b10171a04131e348fe2c2b12956677b6da98e | |
parent | 2ff33d0f18a8a7e0878cc88032a7a2436a788020 (diff) |
backup-partition: check that target is inactive
-rw-r--r-- | backup-partition.rsc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backup-partition.rsc b/backup-partition.rsc index 211db0f..34cdc8f 100644 --- a/backup-partition.rsc +++ b/backup-partition.rsc @@ -60,10 +60,10 @@ } :local FallbackToName [ /partitions/get $ActiveRunning fallback-to ]; - :local FallbackTo [ /partition/find where name=$FallbackToName ]; + :local FallbackTo [ /partition/find where name=$FallbackToName !active ]; :if ([ :len $FallbackTo ] < 1) do={ - $LogPrint error $ScriptName ("There is no partition with name '" . $FallbackToName . "'."); + $LogPrint error $ScriptName ("There is no inactive partition named '" . $FallbackToName . "'."); :set PackagesUpdateBackupFailure true; :error false; } |