Refine preservation detection messaging and label fallback
Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/8a51f052-83d0-4079-8338-5cfdbb849aa2 Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
846e2af705
commit
5fe2ecd56d
@@ -108,7 +108,7 @@ if [[ -n "$DATA_DISK" ]]; then
|
||||
DATA_P1=$(part_suffix "$DATA_DISK" 1)
|
||||
if [[ -b "$DATA_P1" ]]; then
|
||||
DATA_LABEL=$(lsblk -no LABEL "$DATA_P1" 2>/dev/null | head -n1 || true)
|
||||
if [[ "$DATA_LABEL" != "BTCEcoandBackup" ]]; then
|
||||
if [[ -z "$DATA_LABEL" ]]; then
|
||||
DATA_LABEL=$(blkid -o value -s LABEL "$DATA_P1" 2>/dev/null || true)
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user