Skip to content

Commit

Permalink
Adapt chrp-boot option when xorrisofs is used
Browse files Browse the repository at this point in the history
 - xorrisofs use -chrp-boot-part option to generate PPC boot while
mkisofs use -chrp-boot
  • Loading branch information
schabrolles committed Jul 21, 2017
1 parent 3a35f16 commit 30099a9
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -10,7 +10,14 @@ if [ -d isofs ] ; then
fi

# mkisofs command for ppc64/ppc64le arch
$ISO_MKISOFS_BIN $v -o "$ISO_DIR/$ISO_PREFIX.iso" -U -chrp-boot -R -J -volid "$ISO_VOLID" -v -graft-points "${ISO_FILES[@]}" >&2
# Adapt the chrp-boot option if xorrisofs is used.
if [[ "$(basename $ISO_MKISOFS_BIN)" == "xorrisofs" ]]; then
chrp_boot_option="-chrp-boot-part"
else
chrp_boot_option="-chrp-boot"
fi

$ISO_MKISOFS_BIN $v -o "$ISO_DIR/$ISO_PREFIX.iso" -U $chrp_boot_option -R -J -volid "$ISO_VOLID" -v -graft-points "${ISO_FILES[@]}" >&2

StopIfError "Could not create ISO image (with $ISO_MKISOFS_BIN)"
popd >&2
Expand Down

0 comments on commit 30099a9

Please sign in to comment.