summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2017-07-21 21:08:49 +0200
committer Eric Hameleers <alien@slackware.com>2017-07-21 21:08:49 +0200
commit35b31ec24bef6f2bc25aaee6837127c013b1b39c (patch)
tree2f216d197e31d63d3dd8b0a5817f204f729fce8d
parentb29a98a3574573958d27cf7b46c9f780bf9ee557 (diff)
downloadliveslak-35b31ec24bef6f2bc25aaee6837127c013b1b39c.tar.gz
liveslak-35b31ec24bef6f2bc25aaee6837127c013b1b39c.tar.xz
New syslinux requirement: disable 64bit feature in mke2fs command
See http://www.syslinux.org/wiki/index.php?title=Filesystem As of Syslinux 6.03, "pure 64-bits" compression/encryption is not supported. Modern mke2fs creates file systems with the metadata_csum and 64bit features enabled by default. Explicitly disable 64bit feature in the mke2fs command with '-O ^64bit'; otherwise, the syslinux bootloader (>= 6.03) will fail.
-rw-r--r--iso2usb.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/iso2usb.sh b/iso2usb.sh
index 60489b3..eed490e 100644
--- a/iso2usb.sh
+++ b/iso2usb.sh
@@ -550,7 +550,13 @@ if [ $REFRESH -eq 0 ]; then
if mount |grep -qw ${TARGET}3 ; then
umount ${TARGET}3 || true
fi
- mkfs.ext4 -F -F -L "${LIVELABEL}" -m 0 ${TARGET}3
+ # http://www.syslinux.org/wiki/index.php?title=Filesystem
+ # As of Syslinux 6.03, "pure 64-bits" compression/encryption is not supported.
+ # Modern mke2fs creates file systems with the metadata_csum and 64bit
+ # features enabled by default.
+ # Explicitly disable 64bit feature in the mke2fs command with '-O ^64bit';
+ # otherwise, the syslinux bootloader (>= 6.03) will fail.
+ mkfs.ext4 -F -F -L "${LIVELABEL}" -m 0 -O ^64bit ${TARGET}3
tune2fs -c 0 -i 0 ${TARGET}3
fi # End [ $REFRESH -eq 0 ]