summaryrefslogtreecommitdiff
path: root/packages/initrdscripts/files/30-bootmenu.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packages/initrdscripts/files/30-bootmenu.sh')
-rw-r--r--packages/initrdscripts/files/30-bootmenu.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/initrdscripts/files/30-bootmenu.sh b/packages/initrdscripts/files/30-bootmenu.sh
index 5b3e7782f4..1bb53d20a3 100644
--- a/packages/initrdscripts/files/30-bootmenu.sh
+++ b/packages/initrdscripts/files/30-bootmenu.sh
@@ -1,3 +1,7 @@
+#
+# (c) 2007 Paul Sokolovsky
+#
+
# If root is explicitly specified, skip interactive selection
if [ -z "$ROOT_DEVICE" ]; then
##############################
@@ -52,7 +56,9 @@ get_menu_selection()
get_partition_type()
{
- fstype=`mount -f --guess-fstype /dev/$dev $MOUNTLOC`
+# fstype=`mount -f --guess-fstype /dev/$dev $MOUNTLOC`
+ fstype=`fstype </dev/$dev`
+ fstype=`expr "$fstype" : 'FSTYPE=\([A-Za-z0-9]*\).*'`
}
scan_for_loopimgs()