oem-factory-reset: Don't repeat "insert flash drive" message

Don't repeat this message if the user says "no" to the confirmation
prompt.  Go directly to the menu.

Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
This commit is contained in:
Jonathon Hall 2023-11-13 14:52:09 -05:00
parent d39fc26dd9
commit 97d903f22a
No known key found for this signature in database
GPG Key ID: 1E9C3CA91AE25114

View File

@ -413,10 +413,11 @@ select_thumb_drive_for_key_material() {
enable_usb
enable_usb_storage
prompt_insert_to_be_wiped_thumb_drive
#loop until user chooses a disk
thumb_drive=""
while [ -z "$thumb_drive" ]; do
prompt_insert_to_be_wiped_thumb_drive
#list usb storage devices
list_usb_storage disks >/tmp/usb_disk_list
# Abort if: