From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-catalyst+bounces-3434-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 8E7DC1388BF
	for <garchives@archives.gentoo.org>; Tue, 12 Jan 2016 04:56:24 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 8826E21C008;
	Tue, 12 Jan 2016 04:56:21 +0000 (UTC)
Received: from mail-ob0-f193.google.com (mail-ob0-f193.google.com [209.85.214.193])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id E62DE21C008
	for <gentoo-catalyst@lists.gentoo.org>; Tue, 12 Jan 2016 04:56:20 +0000 (UTC)
Received: by mail-ob0-f193.google.com with SMTP id oj9so5625445obc.0
        for <gentoo-catalyst@lists.gentoo.org>; Mon, 11 Jan 2016 20:56:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=from:to:cc:subject:date:message-id;
        bh=dHGfx5p4QUlmtefSEHdjak5rtXI/5hr8cvA+bSP5iTA=;
        b=L9+ARydfaDAbgkVQvazzvCBwrabhk8L3TijQrQ/Hm54JAf6dw+K20tVxJ8bukVy5Ms
         X/+uEC5IE3BY1zYV8cAutmIugFNdIbhfY4+LaAwoLklH7hIMzpCOeoRvzJPW0ub66Vt/
         0dzg9XwFlSPpNKLtlqHs99SXQvqcv0MVS6BJ67kUu6Ocech2MHN27LJ9JOKSu/fZIMyX
         kTvv/mSOd+/1WC8vG+JnrxiP6231ZrMRqyidc3kRYGuSJPMmPHVv8Es2X2K4j/78lyOo
         MIe/8bBD6jTFuQ77SSyZmCGv4tZqzbQ1FSK/lfnP4ATz51OUGduF8o+SSVd2AMphkj4j
         35ZA==
X-Received: by 10.202.0.204 with SMTP id 195mr93014343oia.131.1452574580147;
        Mon, 11 Jan 2016 20:56:20 -0800 (PST)
Received: from p006vm30.pbm.ihost.com (used3.centers.ihost.com. [32.97.185.24])
        by smtp.gmail.com with ESMTPSA id mm4sm53273455obb.1.2016.01.11.20.56.18
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
        Mon, 11 Jan 2016 20:56:18 -0800 (PST)
From: Kevin Zhao <kevin.zhaoshuai@gmail.com>
To: gentoo-catalyst@lists.gentoo.org
Cc: kevin.zhaoshuai@gmail.com
Subject: [gentoo-catalyst][PATCH  2/3] Modify the mkisofs parameter of ppc64 little-endian.
Date: Mon, 11 Jan 2016 23:55:14 -0500
Message-Id: <1452574514-16857-1-git-send-email-kevin.zhaoshuai@gmail.com>
X-Mailer: git-send-email 2.1.0
Precedence: bulk
List-Post: <mailto:gentoo-catalyst@lists.gentoo.org>
List-Help: <mailto:gentoo-catalyst+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-catalyst+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-catalyst+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-catalyst.gentoo.org>
X-BeenThere: gentoo-catalyst@lists.gentoo.org
Reply-to: gentoo-catalyst@lists.gentoo.org
X-Archives-Salt: 1d20a36f-1627-4f93-8b35-532d271a7644
X-Archives-Hash: 1cceba0056e6f1ebdaa9acc7dc845c23

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>
---
 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..e333921 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 -chrproot )
 		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
-- 
2.1.0