summaryrefslogtreecommitdiff
path: root/libre/syslinux/syslinux-install_update
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2018-02-05 14:50:34 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2018-02-05 14:50:34 -0500
commite18088876c85875dd77cd572941b1758e1ce6a1e (patch)
treec2fbb7c78b86a3c6eb7a88dd18184453e3d066d9 /libre/syslinux/syslinux-install_update
parent276a23172ae8bac697487c5e9a2ac2aecf26e3fc (diff)
downloadabslibre-e18088876c85875dd77cd572941b1758e1ce6a1e.tar.gz
abslibre-e18088876c85875dd77cd572941b1758e1ce6a1e.tar.bz2
abslibre-e18088876c85875dd77cd572941b1758e1ce6a1e.zip
syslinux-6.03-8.parabola1: Fixed multiple issues
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