Signed-off-by: Kevin Zhao <[email protected]>
---
targets/support/create-iso.sh | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/targets/support/create-iso.sh b/targets/support/create-iso.sh
index b4077c3..2e604db 100755
--- a/targets/support/create-iso.sh
+++ b/targets/support/create-iso.sh
@@ -211,8 +211,22 @@ case ${clst_hostarch} in
"${clst_target_path}/ppc/bootinfo.txt"
fi
+ flags=( -r -U )
echo ">> Running mkisofs to create iso image...."
- run_mkisofs -r -U -chrp-boot -netatalk -hfs -probe -map
"${clst_target_path}"/boot/map.hfs -part -no-desktop -hfs-volid
"${clst_iso_volume_id}" -hfs-bless "${clst_target_path}"/boot -hide-hfs
"zisofs" -hide-hfs "stages" -hide-hfs "distfiles" -hide-hfs "snapshots" -J
${mkisofs_zisofs_opts} -V "${clst_iso_volume_id}" -o "${1}"
"${clst_target_path}"/
+ if echo ${clst_subarch} | grep -qE ".+le$"
+ then
+ flags+=(
+ -v -T -l -cache-inodes -chrp-boot
+ )
+ else
+ flags+=(
+ -chrp-boot -netatalk -hfs -probe -map
"${clst_target_path}"/boot/map.hfs \
+ -part -no-desktop -hfs-volid
"${clst_iso_volume_id}" -hfs-bless "${clst_target_path}"/boot -hide-hfs \
+ "zisofs" -hide-hfs "stages" -hide-hfs
"distfiles" -hide-hfs "snapshots" -J ${mkisofs_zisofs_opts}
+ )
+ fi
+ run_mkisofs "${flags[@]}" \
+ -V "${clst_iso_volume_id}" -o "${1}"
"${clst_target_path}"
;;
sparc*)
# Old silo (<=1.2.6) requires a specially built mkisofs
--
2.1.0