summaryrefslogtreecommitdiffstats
path: root/make_slackware_live.sh
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2016-01-01 17:59:30 +0100
committer Eric Hameleers <alien@slackware.com>2016-01-01 17:59:30 +0100
commitb225306ea0f156fc865fb20b1059cb00dc3b56d0 (patch)
tree5f8630b2dcbc0c2761305a63a4adb220fff6f4eb /make_slackware_live.sh
parente097d633220a415704f1c1f5e654f4eccc83e9ac (diff)
downloadliveslak-b225306ea0f156fc865fb20b1059cb00dc3b56d0.tar.gz
liveslak-b225306ea0f156fc865fb20b1059cb00dc3b56d0.tar.xz
Use more compatible isohybrid commandline parameters.
This modifies Didier's original patch with a simpler set of parameters. His recommendations are based on these threads: http://www.syslinux.org/archives/2015-February/023256.html http://www.syslinux.org/archives/2015-May/023455.html http://www.syslinux.org/archives/2014-July/022538.html The new parameters allow the big ISOs to be booted in VBox. Patch proposed by Didier Spaier.
Diffstat (limited to 'make_slackware_live.sh')
-rwxr-xr-xmake_slackware_live.sh31
1 files changed, 15 insertions, 16 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index 043e590..ed60869 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -1421,24 +1421,23 @@ rm -rf ./boot
cd - 1>/dev/null
SIZEISO=$(stat --printf %s ${OUTPUT}/slackware${DIRSUFFIX}-live${ISOTAG}-${SL_VERSION}.iso)
-# We want at most 1024 cylinders for old BIOS; also we want no more than
-# 63 sectors, no more than 255 heads, which leads to a cut-over size:.
-# 64 (heads) *32 (sectors) *1024 (cylinders) *512 (bytes) = 1073741824 bytes.
-# However, for sizes > 8422686720 compatibility will be out the window anyway.
-if [ $SIZEISO -gt 8422686720 ]; then
- isohybrid -u ${OUTPUT}/slackware${DIRSUFFIX}-live${ISOTAG}-${SL_VERSION}.iso
+# We want no more than 63 sectors, no more than 255 heads, according to
+# recommendations from Thomas Schmitt, xoriso developer.
+if [ $SIZEISO -gt 1073741824 ]; then
+ # No more than 63 sectors, no more than 255 heads. We will not try to stick
+ # to less than 1024 cylinders though:
+ SECTORS=63
+ HEADS=255
else
- if [ $SIZEISO -gt 1073741824 ]; then
- # No more than 63 sectors, no more than 255 heads.
- SECTORS=63
- HEADS=$(( ($SIZEISO/1024/63/512) + 2 ))
- else
- # The default values for isohybrid that give a size of 1073741824 bytes.
- SECTORS=32
- HEADS=64
- fi
- isohybrid -s $SECTORS -h $HEADS -u ${OUTPUT}/slackware${DIRSUFFIX}-live${ISOTAG}-${SL_VERSION}.iso
+ # The default values for isohybrid gives us a max size of 1073741824 bytes:
+ # We want at most 1024 cylinders for old BIOS; also we want no more than
+ # 63 sectors, no more than 255 heads, which leads to a cut-over size:.
+ # 64 (heads) *32 (sectors) *1024 (cylinders) *512 (bytes) = 1073741824 bytes.
+ SECTORS=32
+ HEADS=64
fi
+isohybrid -s $SECTORS -h $HEADS -u ${OUTPUT}/slackware${DIRSUFFIX}-live${ISOTAG}-${SL_VERSION}.iso
+
cd ${OUTPUT}
md5sum slackware${DIRSUFFIX}-live${ISOTAG}-${SL_VERSION}.iso \
> slackware${DIRSUFFIX}-live${ISOTAG}-${SL_VERSION}.iso.md5