From f8ca191ca21579d3338bf53e2c1fd92acd084353 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 6 Mar 2010 17:23:59 +0100 Subject: Adding support for debian-volatile archive. --- functions/defaults.sh | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'functions') diff --git a/functions/defaults.sh b/functions/defaults.sh index 7d0588d7c..cd6e494a2 100755 --- a/functions/defaults.sh +++ b/functions/defaults.sh @@ -333,6 +333,22 @@ Set_defaults () esac fi + # Setting volatile mirror to fetch packages from + if [ -z "${LH_MIRROR_CHROOT_VOLATILE}" ] + then + case "${LH_MODE}" in + debian|debian-release) + case "${LH_DISTRIBUTION}" in + lenny) + LH_MIRROR_CHROOT_VOLATILE="http://volatile.debian.org/debian-volatile/" + ;; + esac + ;; + esac + + LH_MIRROR_CHROOT_VOLATILE="${LH_MIRROR_CHROOT_VOLATILE:-none}" + fi + # Setting mirror which ends up in the image if [ -z "${LH_MIRROR_BINARY}" ] then @@ -385,6 +401,22 @@ Set_defaults () esac fi + # Setting volatile mirror which ends up in the image + if [ -z "${LH_MIRROR_BINARY_VOLATILE}" ] + then + case "${LH_MODE}" in + debian|debian-release) + case "${LH_DISTRIBUTION}" in + lenny) + LH_MIRROR_BINARY_VOLATILE="http://volatile.debian.org/debian-volatile/" + ;; + esac + ;; + esac + + LH_MIRROR_BINARY_VOLATILE="${LH_MIRROR_BINARY_VOLATILE:-none}" + fi + LH_MIRROR_DEBIAN_INSTALLER="${LH_MIRROR_DEBIAN_INSTALLER:-${LH_MIRROR_BOOTSTRAP}}" # Setting archive areas value @@ -685,6 +717,14 @@ Set_defaults () LH_SECURITY="${LH_SECURITY:-true}" + # Setting volatile updates option + if [ "${LH_MIRROR_CHROOT_VOLATILE}" = "none" ] || [ "${LH_MIRROR_BINARY_VOLATILE}" = "none" ] + then + LH_VOLATILE="false" + fi + + LH_VOLATILE="${LH_VOLATILE:-true}" + # Setting symlink convertion option LH_SYMLINKS="${LH_SYMLINKS:-false}" -- cgit v1.2.3