Merge "Fix for fatal error when GPT was used and only MBR was cleaned"

This commit is contained in:
Zuul 2018-05-18 14:30:29 +00:00 committed by Gerrit Code Review
commit bcb4f3652d
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ DEVICE="$2"
# In production this will be replaced with secure erasing the drives
# For now we need to ensure there aren't any old (GPT) partitions on the drive
log "Erasing existing GPT and MBR data structures from ${DEVICE}"
sgdisk -Z $DEVICE
sgdisk -Z $DEVICE || sgdisk -o $DEVICE
log "Imaging $IMAGEFILE to $DEVICE"