Skip to content
Snippets Groups Projects
Commit dd86260f authored by Jérôme Charaoui's avatar Jérôme Charaoui
Browse files

Merge branch 'hotfix/syshandler-overwrite-luksheaderbackup' into 'master'

sys handler: remove old LUKS header backup file to allow updating

Closes #11333

See merge request !58
parents 5cc80402 21abd730
Branches
No related tags found
No related merge requests found
......@@ -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`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment