diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:05:09 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:18:29 +0100 |
commit | 97c3a13dcc9becf93cb7c2aa89ea3e00f06b9179 (patch) | |
tree | d7facbbbf53b1a5bc0fa92f671f5b1e29a7e3200 /helpers/lh_source_iso | |
parent | 7c68e6ebca01f64501453fa53941ac77b9c2c335 (diff) | |
download | vyos-live-build-97c3a13dcc9becf93cb7c2aa89ea3e00f06b9179.tar.gz vyos-live-build-97c3a13dcc9becf93cb7c2aa89ea3e00f06b9179.zip |
Adding live-helper 1.0~a10-1.
Diffstat (limited to 'helpers/lh_source_iso')
-rwxr-xr-x | helpers/lh_source_iso | 36 |
1 files changed, 30 insertions, 6 deletions
diff --git a/helpers/lh_source_iso b/helpers/lh_source_iso index b00172787..078474785 100755 --- a/helpers/lh_source_iso +++ b/helpers/lh_source_iso @@ -32,19 +32,19 @@ Read_conffile config/binary Read_conffile config/source Set_defaults -Breakpoint "source_iso: Init" - if [ "${LIVE_SOURCE}" != "enabled" ] then exit 0 fi -for IMAGE in ${LIVE_SOURCE_IMAGE} +for IMAGE in ${LIVE_SOURCE_IMAGES} do if [ "${IMAGE}" = "iso" ] then + Breakpoint "source_iso: Init" + # Requiring stage file - Require_stagefile .stage/source_download + Require_stagefile .stage/source_debian # Checking stage file Check_stagefile .stage/source_iso @@ -55,14 +55,38 @@ do # Creating lock file Create_lockfile .lock + # Checking depends + Check_package chroot/usr/bin/"${LH_GENISOIMAGE}" ${LH_GENISOIMAGE} + + # Installing depends + Install_package + # Remove old source if [ -f source.iso ] then rm -f source.iso fi - # Create image - ${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 source.iso -r -J -l -V "${LIVE_DISK_VOLUME}" source + if [ "${LH_VERBOSE}" = "enabled" ] + then + GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -v" + fi + + # Moving image + mv source chroot + +cat >> chroot/source.sh << EOF +${LH_GENISOIMAGE} ${GENISOIMAGE_OPTIONS} -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" -V "${LIVE_ISO_VOLUME}" -o source.iso -r -J -l -cache-inodes source +EOF + + Chroot "sh source.sh" + + # Move image + mv chroot/source chroot/source.iso ./ + rm -f chroot/source.sh + + # Removing depends + Remove_package # Creating stage file Create_stagefile .stage/source_iso |