1 |
2016-01-06 7:30 GMT+08:00 Mike Frysinger <vapier@g.o>: |
2 |
> On 16 Dec 2015 11:41, Kevin Zhao wrote: |
3 |
>> - 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}"/ |
4 |
>> + if [ "${clst_subarch}" == "ppc64le" ]||[ "${clst_subarch}" == "power8" ] |
5 |
> |
6 |
> please put spaces around the || operator, and use = instead of == |
7 |
> |
8 |
> isn't this power8 specific ? so do you really need to look at ppc64le ? |
9 |
|
10 |
Thanks for the comment Mike. It is not the power8 specific, all the |
11 |
ppc64le arch(including power7le and power8le)will use the new command |
12 |
|
13 |
> |
14 |
>> + then |
15 |
>> + run_mkisofs -v -r -T -U -l -cache-inodes -chrp-boot -V "${clst_iso_volume_id}" -o "${1}" "${clst_target_path}" |
16 |
>> + else |
17 |
>> + 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}"/ |
18 |
>> + fi |
19 |
> |
20 |
> i know the existing code is ugly, but please fix that here. rather than |
21 |
> duplicate the huge command line, factor out the common bits. something |
22 |
> like: |
23 |
> flags=( -r -U ) |
24 |
> if [ "${clst_subarch}" = "power8" ] |
25 |
> then |
26 |
> flags+=( |
27 |
> -v -T -l -cache-inodes -chrp-boot |
28 |
> ) |
29 |
> else |
30 |
> flags+=( |
31 |
> ... |
32 |
> ) |
33 |
> fi |
34 |
> run_mkisofs "${flags[@]}" \ |
35 |
> -J ${mkisofs_zisofs_opts} |
36 |
> -V "${clst_iso_volume_id}" -o "${1}" "${clst_target_path}" |
37 |
> |
38 |
> also, it seems like some of the flags you dropped for power8 should stay there. |
39 |
> -mike |
40 |
OK I will fix it here.Thanks~I will send the modifying patches again |
41 |
after tweaking. |