Gentoo Archives: gentoo-catalyst

From: Kevin Zhao <kevin.zhaoshuai@×××××.com>
To: gentoo-catalyst@l.g.o
Cc: kevin.zhaoshuai@×××××.com
Subject: [gentoo-catalyst][PATCH 2/3] Modify the mkisofs parameter of ppc64 little-endian.
Date: Tue, 12 Jan 2016 04:56:24
Message-Id: 1452574514-16857-1-git-send-email-kevin.zhaoshuai@gmail.com
1 ppc64 little-endian has different archtecture and new
2 boot parameters.Don't need the hfs and mapping files
3 as it in Big-endian.Also tweak the code of Big-endian.
4
5 Signed-off-by: Kevin Zhao <kevin.zhaoshuai@×××××.com>
6 ---
7 targets/support/create-iso.sh | 16 +++++++++++++++-
8 1 file changed, 15 insertions(+), 1 deletion(-)
9
10 diff --git a/targets/support/create-iso.sh b/targets/support/create-iso.sh
11 index b4077c3..e333921 100755
12 --- a/targets/support/create-iso.sh
13 +++ b/targets/support/create-iso.sh
14 @@ -211,8 +211,22 @@ case ${clst_hostarch} in
15 "${clst_target_path}/ppc/bootinfo.txt"
16 fi
17
18 + flags=( -r -U -chrproot )
19 echo ">> Running mkisofs to create iso image...."
20 - 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}"/
21 + if [[ ${clst_subarch} == *le ]]
22 + then
23 + flags+=(
24 + -v -T -l -cache-inodes
25 + )
26 + else
27 + flags+=(
28 + -netatalk -hfs -probe -map "${clst_target_path}"/boot/map.hfs
29 + -part -no-desktop -hfs-volid "${clst_iso_volume_id}" -hfs-bless "${clst_target_path}"/boot -hide-hfs
30 + "zisofs" -hide-hfs "stages" -hide-hfs "distfiles" -hide-hfs "snapshots" -J ${mkisofs_zisofs_opts}
31 + )
32 + fi
33 + run_mkisofs "${flags[@]}" \
34 + -V "${clst_iso_volume_id}" -o "${1}" "${clst_target_path}"
35 ;;
36 sparc*)
37 # Old silo (<=1.2.6) requires a specially built mkisofs
38 --
39 2.1.0