Use mount-usb instead of enable_usb to find USB drives

This commit is contained in:
Kyle Rankin 2018-12-06 13:10:45 -08:00
parent de18c706dc
commit f47df1edd6
No known key found for this signature in database
GPG Key ID: 555577116BFA74B9

View File

@ -93,7 +93,7 @@ while true; do
"u" )
whiptail --title 'Insert a USB thumb drive' \
--msgbox "Insert a USB thumb drive so we can detect the device" 16 60
enable_usb
mount-usb
CURRENT_OPTION=`grep 'CONFIG_USB_BOOT_DEV=' /etc/config | cut -f2 -d '=' | tr -d '"'`
find /dev -name 'sd*' -o -name 'nvme*' > /tmp/filelist.txt
file_selector "/tmp/filelist.txt" "Choose the default USB boot device.\n\nCurrently set to $CURRENT_OPTION."