diff options
author | Daniel Baumann <daniel@debian.org> | 2010-03-06 17:23:59 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:17:04 +0100 |
commit | 17c5ed64b269b2bff7f30448699266c69885a3d2 (patch) | |
tree | f518a6cb4d6990d299957906361c04b4773b4247 /functions/defaults.sh | |
parent | 54518852c8c69eafe56aa68d13c8dfdfc8fc30ea (diff) | |
download | vyos-live-build-17c5ed64b269b2bff7f30448699266c69885a3d2.tar.gz vyos-live-build-17c5ed64b269b2bff7f30448699266c69885a3d2.zip |
Adding support for debian-volatile archive.
Diffstat (limited to 'functions/defaults.sh')
-rwxr-xr-x | functions/defaults.sh | 40 |
1 files changed, 40 insertions, 0 deletions
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}" |