From: Mike Frysinger <vapier@gentoo.org>
To: gentoo-catalyst@lists.gentoo.org
Cc: kevin.zhaoshuai@gmail.com
Subject: Re: [gentoo-catalyst][PATCH v1 2/3] Modify the create iso parameter of ppc64le and power8
Date: Tue, 5 Jan 2016 18:30:47 -0500 [thread overview]
Message-ID: <20160105233047.GP25548@vapier.lan> (raw)
In-Reply-To: <1450284067-13049-1-git-send-email-kevin.zhaoshuai@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1617 bytes --]
On 16 Dec 2015 11:41, Kevin Zhao wrote:
> - 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}" == "ppc64le" ]||[ "${clst_subarch}" == "power8" ]
please put spaces around the || operator, and use = instead of ==
isn't this power8 specific ? so do you really need to look at ppc64le ?
> + then
> + run_mkisofs -v -r -T -U -l -cache-inodes -chrp-boot -V "${clst_iso_volume_id}" -o "${1}" "${clst_target_path}"
> + else
> + 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}"/
> + fi
i know the existing code is ugly, but please fix that here. rather than
duplicate the huge command line, factor out the common bits. something
like:
flags=( -r -U )
if [ "${clst_subarch}" = "power8" ]
then
flags+=(
-v -T -l -cache-inodes -chrp-boot
)
else
flags+=(
...
)
fi
run_mkisofs "${flags[@]}" \
-J ${mkisofs_zisofs_opts}
-V "${clst_iso_volume_id}" -o "${1}" "${clst_target_path}"
also, it seems like some of the flags you dropped for power8 should stay there.
-mike
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2016-01-05 23:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-16 16:40 [gentoo-catalyst][PATCH v1 1/3] Add an subarch ppc64le,as the little-endian of ppc64 Kevin Zhao
2015-12-16 16:41 ` [gentoo-catalyst][PATCH v1 2/3] Modify the create iso parameter of ppc64le and power8 Kevin Zhao
2016-01-05 23:30 ` Mike Frysinger [this message]
2016-01-07 2:35 ` Kevin Zhao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160105233047.GP25548@vapier.lan \
--to=vapier@gentoo.org \
--cc=gentoo-catalyst@lists.gentoo.org \
--cc=kevin.zhaoshuai@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox