From d59ade023c7341e2311a51696cf8eeb6c2d2a6ee Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Wed, 27 Apr 2016 16:46:37 +0200 Subject: 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". --- make_slackware_live.sh | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'make_slackware_live.sh') 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}" -- cgit v1.2.3