mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-09 12:22:40 +01:00
remove old LUKS header backup file prior to regenerating with luksHeaderBackup
This commit is contained in:
parent
5cc80402dd
commit
3f1dabf3a8
@ -600,6 +600,7 @@ if [ "$luksheaders" == "yes" ]; then
|
|||||||
label=${dev#/dev/}
|
label=${dev#/dev/}
|
||||||
label=${label//\//-}
|
label=${label//\//-}
|
||||||
outputfile=${luksheadersfile//__star__/$label}
|
outputfile=${luksheadersfile//__star__/$label}
|
||||||
|
rm -f "${outputfile}"
|
||||||
debug "$CRYPTSETUP will try to backup the LUKS header for device $dev"
|
debug "$CRYPTSETUP will try to backup the LUKS header for device $dev"
|
||||||
debug "$CRYPTSETUP luksHeaderBackup \"${dev}\" --header-backup-file \"${outputfile}\""
|
debug "$CRYPTSETUP luksHeaderBackup \"${dev}\" --header-backup-file \"${outputfile}\""
|
||||||
output=`$CRYPTSETUP luksHeaderBackup "${dev}" --header-backup-file "${outputfile}" 2>&1`
|
output=`$CRYPTSETUP luksHeaderBackup "${dev}" --header-backup-file "${outputfile}" 2>&1`
|
||||||
|
Loading…
Reference in New Issue
Block a user