aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Zhao <kevin.zhaoshuai@gmail.com>2016-04-21 00:42:46 -0400
committerMike Frysinger <vapier@gentoo.org>2016-04-21 01:38:13 -0400
commitbf5670e3d1f8391538c037ae591dfca1a83790dc (patch)
tree00694d957418df57e9b969f2a20c073545a67cbe
parentpowerpc: add subarch ppc64le platform (diff)
downloadcatalyst-bf5670e3d1f8391538c037ae591dfca1a83790dc.tar.gz
catalyst-bf5670e3d1f8391538c037ae591dfca1a83790dc.tar.bz2
catalyst-bf5670e3d1f8391538c037ae591dfca1a83790dc.zip
create-iso: modify the mkisofs parameter of ppc64 little-endian.
ppc64 little-endian has different archtecture and new boot parameters. Don't need the hfs and mapping files as it in Big-endian. Also tweak the code of Big-endian. Signed-off-by: Kevin Zhao <kevin.zhaoshuai@gmail.com> CC: Mike Frysinger <vapier@gentoo.org> CC: Leno Hou <lenohou@gmail.com>
-rwxr-xr-xtargets/support/create-iso.sh16
1 files changed, 15 insertions, 1 deletions
diff --git a/targets/support/create-iso.sh b/targets/support/create-iso.sh
index b4077c3d..f45dd7d1 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 -chrp-boot )
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 [[ ${clst_subarch} == *le ]]
+ then
+ flags+=(
+ -v -T -l -cache-inodes
+ )
+ else
+ flags+=(
+ -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