commit: e2db7e1ab725ac7817baaf1e4c1c5d4b0ad72a8d
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 20 13:40:38 2014 +0000
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Sun Apr 20 13:40:38 2014 +0000
URL:
http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=e2db7e1a
Fix remaining missing clst_target_path trailing slash issues
---
targets/netboot/netboot-combine.sh | 2 +-
targets/netboot2/netboot2-controller.sh | 2 +-
targets/support/create-iso.sh | 50 ++++++++++++++++-----------------
3 files changed, 27 insertions(+), 27 deletions(-)
diff --git a/targets/netboot/netboot-combine.sh
b/targets/netboot/netboot-combine.sh
index d5312fb..a96c567 100755
--- a/targets/netboot/netboot-combine.sh
+++ b/targets/netboot/netboot-combine.sh
@@ -46,7 +46,7 @@ do
mkdir -p ${clst_chroot_path}/tmp/staging/initrd-${kname}
cp -r ${clst_chroot_path}/tmp/image
${clst_chroot_path}/tmp/staging/initrd-${kname}
extract_modules ${clst_chroot_path}/tmp/staging/initrd-${kname} ${kname}
- create_normal_loop ${clst_chroot_path}/tmp/staging/initrd-${kname}
${clst_target_path} initrd-${kname}.igz
+ create_normal_loop ${clst_chroot_path}/tmp/staging/initrd-${kname}
${clst_target_path}/ initrd-${kname}.igz
rm -r ${clst_chroot_path}/tmp/staging/initrd-${kname}
case ${clst_hostarch} in
diff --git a/targets/netboot2/netboot2-controller.sh
b/targets/netboot2/netboot2-controller.sh
index be5f91d..322d9a8 100755
--- a/targets/netboot2/netboot2-controller.sh
+++ b/targets/netboot2/netboot2-controller.sh
@@ -61,7 +61,7 @@ case ${1} in
final)
# For each arch, fetch the kernel images and put them in builds/
- echo -e ">>> Copying completed kernels to ${clst_target_path}
..."
+ echo -e ">>> Copying completed kernels to ${clst_target_path}/
..."
${clst_shdir}/support/netboot2-final.sh
;;
diff --git a/targets/support/create-iso.sh b/targets/support/create-iso.sh
index 08598e5..922057e 100755
--- a/targets/support/create-iso.sh
+++ b/targets/support/create-iso.sh
@@ -82,17 +82,17 @@ fi
case ${clst_hostarch} in
alpha)
echo ">> Running mkisofs to create iso image...."
- echo ">> mkisofs -R -l -J ${mkisofs_zisofs_opts} -V
\"${clst_iso_volume_id}\" -o ${1} ${clst_target_path}"
- mkisofs -R -l -J ${mkisofs_zisofs_opts} -V
"${clst_iso_volume_id}" -o ${1} ${clst_target_path} || die "Cannot make ISO
image"
+ echo ">> mkisofs -R -l -J ${mkisofs_zisofs_opts} -V
\"${clst_iso_volume_id}\" -o ${1} ${clst_target_path}/"
+ mkisofs -R -l -J ${mkisofs_zisofs_opts} -V
"${clst_iso_volume_id}" -o ${1} ${clst_target_path}/ || die "Cannot make ISO
image"
isomarkboot ${1} /boot/bootlx
;;
arm)
;;
hppa)
echo ">> Running mkisofs to create iso image...."
- echo ">> mkisofs -R -l -J ${mkisofs_zisofs_opts} -V
\"${clst_iso_volume_id}\" -o ${1} ${clst_target_path}"
- mkisofs -R -l -J ${mkisofs_zisofs_opts} -V
"${clst_iso_volume_id}" -o ${1} ${clst_target_path} || die "Cannot make ISO
image"
- pushd ${clst_target_path}
+ echo ">> mkisofs -R -l -J ${mkisofs_zisofs_opts} -V
\"${clst_iso_volume_id}\" -o ${1} ${clst_target_path}/"
+ mkisofs -R -l -J ${mkisofs_zisofs_opts} -V
"${clst_iso_volume_id}" -o ${1} ${clst_target_path}/ || die "Cannot make ISO
image"
+ pushd ${clst_target_path}/
palo -f boot/palo.conf -C ${1}
popd
;;
@@ -125,8 +125,8 @@ case ${clst_hostarch} in
rm -rf ${clst_target_path}/boot
echo ">> Running mkisofs to create iso image...."
- echo ">> mkisofs -R -l -b gentoo.efimg -c boot.cat
-no-emul-boot -J ${mkisofs_zisofs_opts} -V \"${clst_iso_volume_id}\" -o ${1}
${clst_target_path}"
- mkisofs -R -l -b gentoo.efimg -c boot.cat -no-emul-boot -J
${mkisofs_zisofs_opts} -V "${clst_iso_volume_id}" -o ${1} ${clst_target_path}
|| die "Cannot make ISO image"
+ echo ">> mkisofs -R -l -b gentoo.efimg -c boot.cat
-no-emul-boot -J ${mkisofs_zisofs_opts} -V \"${clst_iso_volume_id}\" -o ${1}
${clst_target_path}/"
+ mkisofs -R -l -b gentoo.efimg -c boot.cat -no-emul-boot -J
${mkisofs_zisofs_opts} -V "${clst_iso_volume_id}" -o ${1} ${clst_target_path}/
|| die "Cannot make ISO image"
;;
mips)
case ${clst_fstype} in
@@ -198,8 +198,8 @@ case ${clst_hostarch} in
fi
echo ">> Running mkisofs to create iso image...."
- echo ">> 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}"
- 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}
|| die "Cannot make ISO image"
+ echo ">> 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}/"
+ 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}/
|| die "Cannot make ISO image"
;;
sparc*)
# Old silo (<=1.2.6) requires a specially built mkisofs
@@ -209,13 +209,13 @@ case ${clst_hostarch} in
then
mv ${clst_target_path}/boot/mkisofs.sparc.fu /tmp
echo "Running mkisofs.sparc.fu to create iso image...."
- echo "/tmp/mkisofs.sparc.fu ${mkisofs_zisofs_opts} -o
${1} -D -r -pad -quiet -S 'boot/cd.b' -B '/boot/second.b' -s '/boot/silo.conf'
-V \"${clst_iso_volume_id}\" ${clst_target_path}"
- /tmp/mkisofs.sparc.fu ${mkisofs_zisofs_opts} -o ${1} -D
-r -pad -quiet -S 'boot/cd.b' -B '/boot/second.b' -s '/boot/silo.conf' -V
"${clst_iso_volume_id}" ${clst_target_path} || die "Cannot make ISO image"
+ echo "/tmp/mkisofs.sparc.fu ${mkisofs_zisofs_opts} -o
${1} -D -r -pad -quiet -S 'boot/cd.b' -B '/boot/second.b' -s '/boot/silo.conf'
-V \"${clst_iso_volume_id}\" ${clst_target_path}/"
+ /tmp/mkisofs.sparc.fu ${mkisofs_zisofs_opts} -o ${1} -D
-r -pad -quiet -S 'boot/cd.b' -B '/boot/second.b' -s '/boot/silo.conf' -V
"${clst_iso_volume_id}" ${clst_target_path}/ || die "Cannot make ISO image"
rm /tmp/mkisofs.sparc.fu
else
echo "Running mkisofs to create iso image...."
- echo "mkisofs -J -R -l ${mkisofs_zisofs_opts} -V
\"${clst_iso_volume_id}\" -o ${1} -G \"${clst_target_path}/boot/isofs.b\" -B
... ${clst_target_path}"
- mkisofs -J -R -l ${mkisofs_zisofs_opts} -V
"${clst_iso_volume_id}" -o ${1} -G "${clst_target_path}/boot/isofs.b" -B ...
${clst_target_path} || die "CAnnot make ISO image"
+ echo "mkisofs -J -R -l ${mkisofs_zisofs_opts} -V
\"${clst_iso_volume_id}\" -o ${1} -G \"${clst_target_path}/boot/isofs.b\" -B
... ${clst_target_path}/"
+ mkisofs -J -R -l ${mkisofs_zisofs_opts} -V
"${clst_iso_volume_id}" -o ${1} -G "${clst_target_path}/boot/isofs.b" -B ...
${clst_target_path}/ || die "CAnnot make ISO image"
fi
;;
@@ -262,34 +262,34 @@ case ${clst_hostarch} in
mv ${clst_target_path}/boot/*
${clst_target_path}/isolinux
rm -r ${clst_target_path}/boot
echo "Creating ISO using ISOLINUX
bootloader"
- echo "mkisofs -J -R -l
${mkisofs_zisofs_opts} -V \"${clst_iso_volume_id}\" -o ${1} -b
isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4
-boot-info-table ${clst_target_path}"
- mkisofs -J -R -l ${mkisofs_zisofs_opts}
-V "${clst_iso_volume_id}" -o ${1} -b isolinux/isolinux.bin -c
isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table
${clst_target_path} || die "Cannot make ISO image"
+ echo "mkisofs -J -R -l
${mkisofs_zisofs_opts} -V \"${clst_iso_volume_id}\" -o ${1} -b
isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4
-boot-info-table ${clst_target_path}/"
+ mkisofs -J -R -l ${mkisofs_zisofs_opts}
-V "${clst_iso_volume_id}" -o ${1} -b isolinux/isolinux.bin -c
isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table
${clst_target_path}/ || die "Cannot make ISO image"
isohybrid ${1}
elif [ -e ${clst_target_path}/gentoo.efimg ]
then
echo "Creating ISO using both ISOLINUX
and EFI bootloader"
- echo "mkisofs -J -R -l
${mkisofs_zisofs_opts} -V \"${clst_iso_volume_id}\" -o ${1} -b
isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4
-boot-info-table -eltorito-alt-boot -b gentoo.efimg -c boot.cat -no-emul-boot
-z ${clst_target_path}"
- mkisofs -J -R -l ${mkisofs_zisofs_opts}
-V "${clst_iso_volume_id}" -o ${1} -b isolinux/isolinux.bin -c
isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table
-eltorito-alt-boot -b gentoo.efimg -c boot.cat -no-emul-boot -z
${clst_target_path} || die "Cannot make ISO image"
+ echo "mkisofs -J -R -l
${mkisofs_zisofs_opts} -V \"${clst_iso_volume_id}\" -o ${1} -b
isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4
-boot-info-table -eltorito-alt-boot -b gentoo.efimg -c boot.cat -no-emul-boot
-z ${clst_target_path}/"
+ mkisofs -J -R -l ${mkisofs_zisofs_opts}
-V "${clst_iso_volume_id}" -o ${1} -b isolinux/isolinux.bin -c
isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table
-eltorito-alt-boot -b gentoo.efimg -c boot.cat -no-emul-boot -z
${clst_target_path}/ || die "Cannot make ISO image"
fi
else
echo "Creating ISO using ISOLINUX bootloader"
- echo "mkisofs -J -R -l ${mkisofs_zisofs_opts}
-V \"${clst_iso_volume_id}\" -o ${1} -b isolinux/isolinux.bin -c
isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table
${clst_target_path}"
- mkisofs -J -R -l ${mkisofs_zisofs_opts} -V
"${clst_iso_volume_id}" -o ${1} -b isolinux/isolinux.bin -c isolinux/boot.cat
-no-emul-boot -boot-load-size 4 -boot-info-table ${clst_target_path} || die
"Cannot make ISO image"
+ echo "mkisofs -J -R -l ${mkisofs_zisofs_opts}
-V \"${clst_iso_volume_id}\" -o ${1} -b isolinux/isolinux.bin -c
isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table
${clst_target_path}/"
+ mkisofs -J -R -l ${mkisofs_zisofs_opts} -V
"${clst_iso_volume_id}" -o ${1} -b isolinux/isolinux.bin -c isolinux/boot.cat
-no-emul-boot -boot-load-size 4 -boot-info-table ${clst_target_path}/ || die
"Cannot make ISO image"
isohybrid ${1}
fi
elif [ -e ${clst_target_path}/boot/grub/stage2_eltorito ]
then
echo "Creating ISO using GRUB bootloader"
- echo "mkisofs -J -R -l ${mkisofs_zisofs_opts} -V
\"${clst_iso_volume_id}\" -o ${1} -b boot/grub/stage2_eltorito -c boot/boot.cat
-no-emul-boot -boot-load-size 4 -boot-info-table ${clst_target_path}"
- mkisofs -J -R -l ${mkisofs_zisofs_opts} -V
"${clst_iso_volume_id}" -o ${1} -b boot/grub/stage2_eltorito -c boot/boot.cat
-no-emul-boot -boot-load-size 4 -boot-info-table ${clst_target_path} || die
"Cannot make ISO image"
+ echo "mkisofs -J -R -l ${mkisofs_zisofs_opts} -V
\"${clst_iso_volume_id}\" -o ${1} -b boot/grub/stage2_eltorito -c boot/boot.cat
-no-emul-boot -boot-load-size 4 -boot-info-table ${clst_target_path}/"
+ mkisofs -J -R -l ${mkisofs_zisofs_opts} -V
"${clst_iso_volume_id}" -o ${1} -b boot/grub/stage2_eltorito -c boot/boot.cat
-no-emul-boot -boot-load-size 4 -boot-info-table ${clst_target_path}/ || die
"Cannot make ISO image"
elif [ -e ${clst_target_path}/gentoo.efimg ]
then
echo 'Creating ISO using EFI bootloader'
- echo "mkisofs -J -R -l ${mkisofs_zisofs_opts} -V
\"${clst_iso_volume_id}\" -o ${1} -b gentoo.efimg -c boot.cat -no-emul-boot
${clst_target_path}"
- mkisofs -J -R -l ${mkisofs_zisofs_opts} -V
"${clst_iso_volume_id}" -o ${1} -b gentoo.efimg -c boot.cat -no-emul-boot
${clst_target_path} || die "Cannot make ISO image"
+ echo "mkisofs -J -R -l ${mkisofs_zisofs_opts} -V
\"${clst_iso_volume_id}\" -o ${1} -b gentoo.efimg -c boot.cat -no-emul-boot
${clst_target_path}/"
+ mkisofs -J -R -l ${mkisofs_zisofs_opts} -V
"${clst_iso_volume_id}" -o ${1} -b gentoo.efimg -c boot.cat -no-emul-boot
${clst_target_path}/ || die "Cannot make ISO image"
else
- echo "mkisofs -J -R -l ${mkisofs_zisofs_opts} -V
\"${clst_iso_volume_id}\" -o ${1} ${clst_target_path}"
- mkisofs -J -R -l ${mkisofs_zisofs_opts} -V
"${clst_iso_volume_id}" -o ${1} ${clst_target_path} || die "Cannot make ISO
image"
+ echo "mkisofs -J -R -l ${mkisofs_zisofs_opts} -V
\"${clst_iso_volume_id}\" -o ${1} ${clst_target_path}/"
+ mkisofs -J -R -l ${mkisofs_zisofs_opts} -V
"${clst_iso_volume_id}" -o ${1} ${clst_target_path}/ || die "Cannot make ISO
image"
fi
;;
esac