summaryrefslogtreecommitdiff
path: root/libre/syslinux/syslinux-install_update
diff options
context:
space:
mode:
Diffstat (limited to 'libre/syslinux/syslinux-install_update')
-rw-r--r--libre/syslinux/syslinux-install_update8
1 files changed, 7 insertions, 1 deletions
diff --git a/libre/syslinux/syslinux-install_update b/libre/syslinux/syslinux-install_update
index ce45881b2..13dbe258c 100644
--- a/libre/syslinux/syslinux-install_update
+++ b/libre/syslinux/syslinux-install_update
@@ -59,8 +59,9 @@ get_disk() {
fi
case "$part" in
+ # catch cases like mmcblk0p1 and loop0p3
*[[:digit:]]p[[:digit:]]*)
- local disk="${part%%p$partnum}" # get everything before p1
+ local disk="${part%p[[:digit:]]}" # get everything before p1
;;
*)
local disk="${part%%[[:digit:]]*}"
@@ -203,6 +204,11 @@ getBoot() {
echo "Could not find filesystem on / (root) or /boot."
exit 1
fi
+
+ if [[ $bootfs = ext4 && -n "$(tune2fs -l $bootpart | grep 64bit)" ]]; then
+ echo "64 bit option on EXT filesystem is not supported by Syslinux, see http://www.syslinux.org/wiki/index.php?title=Filesystem#ext";
+ exit 1
+ fi
}
# We store the partition table type either gpt or mbr in var ptb