Adding experimental support for isohybrid (Closes: #558688).

This commit is contained in:
Daniel Baumann 2009-12-13 21:21:59 +01:00
parent 0b285d1c45
commit 69b518b0b8
2 changed files with 16 additions and 0 deletions

View File

@ -677,6 +677,7 @@ Set_defaults ()
# Setting image type
LH_BINARY_IMAGES="${LH_BINARY_IMAGES:-iso}"
LH_BINARY_ISO_HYRBID="${LH_BINARY_ISO_HYBRID:-false}"
# Setting apt indices
if echo ${LH_PACKAGES_LISTS} | grep -qs -E "(stripped|minimal)\b"

View File

@ -45,6 +45,11 @@ Create_lockfile .lock
# Checking depends
Check_package chroot/usr/bin/genisoimage genisoimage
if [ "${LH_BINARY_ISO_HYBRID}" = "true" ]
then
Check_package chroot/usr/bin/isohybrid syslinux-common
fi
# Restoring cache
Restore_cache cache/packages_binary
@ -175,6 +180,16 @@ cat >> binary.sh << EOF
genisoimage ${GENISOIMAGE_OPTIONS} -o binary.iso binary
EOF
if [ "${LH_BINARY_ISO_HYRBID}" = "true" ]
then
cat >> binary.sh << EOF
isohybrid binary.iso
EOF
fi
case "${LH_CHROOT_BUILD}" in
true)
# Moving image