Skip to content

Commit 97d903f

Browse files
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>
1 parent d39fc26 commit 97d903f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

initrd/bin/oem-factory-reset

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,11 @@ select_thumb_drive_for_key_material() {
413413
enable_usb
414414
enable_usb_storage
415415

416+
prompt_insert_to_be_wiped_thumb_drive
417+
416418
#loop until user chooses a disk
417419
thumb_drive=""
418420
while [ -z "$thumb_drive" ]; do
419-
prompt_insert_to_be_wiped_thumb_drive
420421
#list usb storage devices
421422
list_usb_storage disks >/tmp/usb_disk_list
422423
# Abort if:

0 commit comments

Comments
 (0)