[molecules] move post_iso_script to amd64.common and x86.common

This way isohybrid can be called without --uefi on x86
This commit is contained in:
Fabio Erculiani
2013-08-03 07:35:12 +02:00
parent 3ae47789e1
commit fbc25100cc
14 changed files with 17 additions and 35 deletions
+10 -1
View File
@@ -11,13 +11,22 @@
/usr/sbin/env-update
. /etc/profile
ISO_ARCH="${1}"
shift
echo
echo "Spawning isohybrid for:"
echo "ISO_PATH = ${ISO_PATH}"
echo "ISO_CHECKSUM_PATH = ${ISO_CHECKSUM_PATH}"
echo "ISO_ARCH = ${ISO_ARCH}"
echo
isohybrid --uefi "${ISO_PATH}" || exit 1
ih_args=""
if [ "${ISO_ARCH}" = "amd64" ]; then
ih_args+=" --uefi"
fi
isohybrid ${ih_args} "${ISO_PATH}" || exit 1
cd "$(dirname "${ISO_PATH}")" || exit 1
iso_name=$(basename "${ISO_PATH}")
md5sum "${iso_name}" > "${ISO_CHECKSUM_PATH}"