mirror of
https://github.com/kevinveenbirkenbach/linux-image-manager.git
synced 2025-09-09 19:57:11 +02:00
Added option to delete partition table
This commit is contained in:
@@ -203,6 +203,15 @@ question "Should the image be transfered to $device_path?(y/N)" && read -r trans
|
||||
if [ "$transfer_image" = "y" ]
|
||||
then
|
||||
|
||||
question "Should the partition table of $device_path be deleted?(y/N)" && read -r delete_partition_table
|
||||
if [ "$delete_partition_table" = "y" ]
|
||||
then
|
||||
info "Deleting..." &&
|
||||
wipefs -a "$device_path" || error
|
||||
else
|
||||
info "Skipping partition table deletion..."
|
||||
fi
|
||||
|
||||
overwritte_device_with_zeros
|
||||
|
||||
info "Starting image transfer..."
|
||||
|
Reference in New Issue
Block a user