mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-09 12:22:40 +01:00
Merge branch 'hotfix/syshandler-overwrite-luksheaderbackup' into 'master'
sys handler: remove old LUKS header backup file to allow updating Closes #11333 See merge request liberate/backupninja!58
This commit is contained in:
commit
dd86260f85
@ -600,6 +600,9 @@ if [ "$luksheaders" == "yes" ]; then
|
||||
label=${dev#/dev/}
|
||||
label=${label//\//-}
|
||||
outputfile=${luksheadersfile//__star__/$label}
|
||||
if [ -f "${outputfile}" ]; then
|
||||
rm "${outputfile}"
|
||||
fi
|
||||
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