cleanup-device (#681)

This commit is contained in:
Pascal Vizeli 2020-05-19 21:29:57 +02:00 committed by GitHub
parent 4eda8a1ff3
commit ce3c80641b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,6 +32,8 @@ if [ ! -b "${NEW_DEVICE_ROOT}" ]; then
echo "[ERROR] No block device ${NEW_DEVICE_ROOT}!" echo "[ERROR] No block device ${NEW_DEVICE_ROOT}!"
exit 1 exit 1
fi fi
echo "[INFO] Cleanup device ${NEW_DEVICE_ROOT}!"
sgdisk -Z "${NEW_DEVICE_ROOT}"
# Create new partition # Create new partition
echo "[INFO] Create new hassos-data partition" echo "[INFO] Create new hassos-data partition"