summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2016-04-27 16:46:37 +0200
committer Eric Hameleers <alien@slackware.com>2016-04-27 16:46:37 +0200
commitd59ade023c7341e2311a51696cf8eeb6c2d2a6ee (patch)
treea6b934dbed3cfd48adb3a982e11f6b5bb644fcc2
parentaa67a52a969f3ef336b845857c48a76a5e319987 (diff)
downloadliveslak-d59ade023c7341e2311a51696cf8eeb6c2d2a6ee.tar.gz
liveslak-d59ade023c7341e2311a51696cf8eeb6c2d2a6ee.tar.xz
Do not specify heads/sectors when calling "isohybrid -u".
The resulting ISO will boot on real hardware as well as in virtualizers like QEMU, VirtualBox and VMWare Player, despite the warning shown by isohybrid that the ISO has more than 1024 cilynders and not all BIOSes will be able to boot it. Specifying sectors/heads to stay "standard compliant" will generate ISO files that fail to boot in VirtualBox if the ISO filesize is larger than roughly 1 GB, spitting out the error "VERR_NOT_SUPPORTED".
-rwxr-xr-xmake_slackware_live.sh18
1 files changed, 1 insertions, 17 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index b63cb2a..76471b3 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -1865,23 +1865,7 @@ cd - 1>/dev/null
if [ "$SL_ARCH" = "x86_64" -o "$EFI32" = "YES" ]; then
# Make this a hybrid ISO with UEFI boot support on x86_64.
# On 32bit, the variable EFI32 must be explicitly enabled.
- SIZEISO=$(stat --printf %s "${OUTFILE}")
- # 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
- # 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 "${OUTFILE}"
+ isohybrid -u "${OUTFILE}"
fi # End UEFI hybrid ISO.
cd "${OUTPUT}"