2011-08-15 09:43:23 +02:00
|
|
|
#!/bin/bash
|
|
|
|
# Update ISO image in order to make it USB bootable
|
|
|
|
# out of the box
|
|
|
|
#
|
|
|
|
# Available env vars:
|
|
|
|
# ISO_PATH = path to generated ISO
|
|
|
|
# ISO_CHECKSUM_PATH = path to generated md5 for ISO
|
|
|
|
#
|
|
|
|
# This script requires isohybrid (which comes from syslinux package)
|
|
|
|
|
2012-07-25 13:23:32 +02:00
|
|
|
/usr/sbin/env-update
|
|
|
|
. /etc/profile
|
2011-08-15 09:43:23 +02:00
|
|
|
|
|
|
|
echo
|
|
|
|
echo "Spawning isohybrid for:"
|
|
|
|
echo "ISO_PATH = ${ISO_PATH}"
|
|
|
|
echo "ISO_CHECKSUM_PATH = ${ISO_CHECKSUM_PATH}"
|
|
|
|
echo
|
|
|
|
|
|
|
|
isohybrid "${ISO_PATH}" || exit 1
|
2011-10-10 22:10:50 +02:00
|
|
|
cd "$(dirname "${ISO_PATH}")" || exit 1
|
|
|
|
iso_name=$(basename "${ISO_PATH}")
|
|
|
|
md5sum "${iso_name}" > "${ISO_CHECKSUM_PATH}"
|
2011-08-15 09:43:23 +02:00
|
|
|
exit ${?}
|
|
|
|
|