mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +00:00
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:
parent
d39fc26dd9
commit
97d903f22a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user