mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-09-19 15:11:38 +02: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=${label//\//-}
|
||||
outputfile=${luksheadersfile//__star__/$label}
|
||||
rm -f "${outputfile}"
|
||||
debug "$CRYPTSETUP will try to backup the LUKS header for device $dev"
|
||||
debug "$CRYPTSETUP luksHeaderBackup \"${dev}\" --header-backup-file \"${outputfile}\""
|
||||
output=`$CRYPTSETUP luksHeaderBackup "${dev}" --header-backup-file "${outputfile}" 2>&1`
|
||||
|
Loading…
Reference in New Issue
Block a user