From c79ab34a7c597c9e3ab202c644121c6944789424 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 23 Sep 2007 10:05:15 +0200 Subject: Adding live-helper 1.0~a19-1. --- helpers/lh_binary_iso | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) (limited to 'helpers/lh_binary_iso') diff --git a/helpers/lh_binary_iso b/helpers/lh_binary_iso index f57b4e511..b39f31e2a 100755 --- a/helpers/lh_binary_iso +++ b/helpers/lh_binary_iso @@ -54,6 +54,9 @@ Create_lockfile .lock # Checking depends Check_package chroot/usr/bin/"${LH_GENISOIMAGE}" ${LH_GENISOIMAGE} +# Restoring cache +Restore_cache cache/packages_binary + # Installing depends Install_package @@ -88,9 +91,6 @@ then GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -V \"${LIVE_ISO_VOLUME}\"" fi -# Moving image -mv binary chroot - # Create image case "${LIVE_BOOTLOADER}" in grub) @@ -128,15 +128,34 @@ case "${LIVE_BOOTLOADER}" in ;; esac +case "${LIVE_CHROOT_BUILD}" in + enabled) + # Moving image + mv binary chroot + cat > chroot/binary.sh << EOF ${LH_GENISOIMAGE} ${GENISOIMAGE_OPTIONS} -o binary.iso -J -l -cache-inodes binary EOF -Chroot "sh binary.sh" + Chroot "sh binary.sh" + + # Move image + mv chroot/binary chroot/binary.iso ./ + rm -f chroot/binary.sh + ;; + + disabled) +cat > binary.sh << EOF +${LH_GENISOIMAGE} ${GENISOIMAGE_OPTIONS} -o binary.iso -J -l -cache-inodes binary +EOF + + sh binary.sh + rm -f binary.sh + ;; +esac -# Move image -mv chroot/binary chroot/binary.iso ./ -rm -f chroot/binary.sh +# Saving cache +Save_cache cache/packages_binary # Removing depends Remove_package -- cgit v1.2.3