2007-09-23 08:04:46 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# lh_binary_iso(1) - build iso binary image
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# Source common functions
|
|
|
|
for FUNCTION in /usr/share/live-helper/functions/*.sh
|
|
|
|
do
|
|
|
|
. ${FUNCTION}
|
|
|
|
done
|
|
|
|
|
|
|
|
# Reading configuration files
|
|
|
|
Read_conffile config/common
|
|
|
|
Read_conffile config/bootstrap
|
|
|
|
Read_conffile config/image
|
|
|
|
Set_defaults
|
|
|
|
|
|
|
|
# Requiring stage file
|
2007-09-23 08:04:47 +00:00
|
|
|
Require_stagefile .stage/bootstrap
|
2007-09-23 08:04:46 +00:00
|
|
|
|
|
|
|
# Checking lock file
|
2007-09-23 08:04:47 +00:00
|
|
|
Check_lockfile .lock
|
2007-09-23 08:04:46 +00:00
|
|
|
|
|
|
|
# Creating lock file
|
2007-09-23 08:04:47 +00:00
|
|
|
Create_lockfile .lock
|
2007-09-23 08:04:46 +00:00
|
|
|
|
|
|
|
# Checking stage file
|
2007-09-23 08:04:47 +00:00
|
|
|
Check_stagefile .stage/binary_iso
|
2007-09-23 08:04:46 +00:00
|
|
|
|
|
|
|
for IMAGE in ${LIVE_BINARY_IMAGE}
|
|
|
|
do
|
|
|
|
if [ "${IMAGE}" = "iso" ]
|
|
|
|
then
|
|
|
|
# Remove old binary
|
2007-09-23 08:04:47 +00:00
|
|
|
if [ -f binary.iso ]
|
2007-09-23 08:04:46 +00:00
|
|
|
then
|
2007-09-23 08:04:47 +00:00
|
|
|
rm -f binary.iso
|
2007-09-23 08:04:46 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Create image
|
|
|
|
if [ "${LIVE_ARCHITECTURE}" = "amd64" ] || [ "${LIVE_ARCHITECTURE}" = "i386" ]
|
|
|
|
then
|
2007-09-23 08:04:47 +00:00
|
|
|
${LH_GENISOIMAGE} -A "Debian Live" -p "Debian Live; http://debian-live.alioth.debian.org/; debian-live-devel@lists.alioth.debian.org" -publisher "Debian Live; http://debian-live.alioth.debian.org/; debian-live-devel@lists.alioth.debian.org" -o "${LIVE_IMAGE}"binary.iso -r -J -l -V "${LIVE_ISO_VOLUME}" -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table binary ${LIVE_INCLUDE_IMAGE}
|
2007-09-23 08:04:46 +00:00
|
|
|
else
|
|
|
|
echo "W: Bootloader on your architecture not yet supported (Continuing in 5 seconds)."
|
|
|
|
sleep 5
|
2007-09-23 08:04:47 +00:00
|
|
|
${LH_GENISOIMAGE} -A "Debian Live" -p "Debian Live; http://debian-live.alioth.debian.org/; debian-live-devel@lists.alioth.debian.org" -publisher "Debian Live; http://debian-live.alioth.debian.org/; debian-live-devel@lists.alioth.debian.org" -o "${LIVE_IMAGE}"binary.iso -r -J -l -V "${LIVE_ISO_VOLUME}" binary ${LIVE_INCLUDE_IMAGE}
|
2007-09-23 08:04:46 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Creating stage file
|
2007-09-23 08:04:47 +00:00
|
|
|
Create_stagefile .stage/binary_iso
|
2007-09-23 08:04:46 +00:00
|
|
|
fi
|
|
|
|
done
|