Zero beginning of UFD before formatting

* Fixes issue #68
This commit is contained in:
2Shirt 2018-12-20 16:10:08 -07:00
parent d60aab9584
commit d930bdddbd
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -533,6 +533,9 @@ echo -e "${GREEN}Building Kit${CLEAR}"
touch "${LOG_FILE}"
tmux split-window -dl 10 tail -f "${LOG_FILE}"
# Zero beginning of device
dd bs=4M count=16 if=/dev/zero of="${DEST_DEV}" >> "${LOG_FILE}" 2>&1
# Format
echo "Formatting drive..."
if [[ "${USE_MBR}" == "True" ]]; then