diff --git a/tools/boot/wheezy/boot-x86 b/tools/boot/wheezy/boot-x86 index 5a5b2e70..9b4a487c 100644 --- a/tools/boot/wheezy/boot-x86 +++ b/tools/boot/wheezy/boot-x86 @@ -201,7 +201,6 @@ echo $SYSLINUXDEB >> $CDDIR/../$N.pkgs_extracted find_pkg_file syslinux source >> $CDDIR/../$N.pkgs_extracted add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-isohybrid-mbr syslinux/usr/lib/syslinux/isohdpfx.bin" -add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-partition_offset 16" # In case of a multi-arch CD the script will be called two times. The # first time the isolinux dir gets set up for single arch; if it is @@ -219,6 +218,12 @@ mkdir -p boot$N/isolinux # Isolinux setup including config and help files comes from d-i. cat cdrom/debian-cd_info.tar.gz | (cd boot$N/isolinux/; tar zx) +# If we don't have grub stuff from d-i, tell xorriso to add a +# partition offset for the isohybrid code +if [ ! -d boot$N/isolinux/grub ] ; then + add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-partition_offset 16" +fi + di_syslinux_ver="$(di_syslinux_version)" case "$di_syslinux_ver" in 2.0)