diff --git a/initrd/bin/config-gui.sh b/initrd/bin/config-gui.sh index a93a1a76..3b14d438 100755 --- a/initrd/bin/config-gui.sh +++ b/initrd/bin/config-gui.sh @@ -31,7 +31,7 @@ while true; do ;; "b" ) CURRENT_OPTION=`grep 'CONFIG_BOOT_DEV=' /tmp/config | tail -n1 | cut -f2 -d '=' | tr -d '"'` - if ! fdisk -l | grep "Disk" | cut -f2 -d " " | cut -f1 -d ":" > /tmp/disklist.txt ; then + if ! fdisk -l | grep "Disk /dev/" | cut -f2 -d " " | cut -f1 -d ":" > /tmp/disklist.txt ; then whiptail $BG_COLOR_ERROR --title 'ERROR: No bootable devices found' \ --msgbox " $ERROR\n\n" 16 60 exit 1 diff --git a/initrd/etc/functions b/initrd/etc/functions index 181e87f3..a978b6f8 100755 --- a/initrd/etc/functions +++ b/initrd/etc/functions @@ -315,7 +315,7 @@ detect_boot_device() fi # generate list of possible boot devices - fdisk -l | grep "Disk" | cut -f2 -d " " | cut -f1 -d ":" > /tmp/disklist + fdisk -l | grep "Disk /dev/" | cut -f2 -d " " | cut -f1 -d ":" > /tmp/disklist # filter out extraneous options > /tmp/boot_device_list