summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-03-06 17:23:59 +0100
committerDaniel Baumann <daniel@debian.org>2010-03-06 17:23:59 +0100
commitf8ca191ca21579d3338bf53e2c1fd92acd084353 (patch)
treef518a6cb4d6990d299957906361c04b4773b4247 /functions
parent2b8ea54d761b97e2656161f3531e8859569b7d9c (diff)
downloadvyos-live-build-f8ca191ca21579d3338bf53e2c1fd92acd084353.tar.gz
vyos-live-build-f8ca191ca21579d3338bf53e2c1fd92acd084353.zip
Adding support for debian-volatile archive.
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/defaults.sh40
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}"