summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-03-11 18:03:29 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:17:05 +0100
commit000ff0a0b04a8878b580eefc1a7c22486d7d4471 (patch)
tree5ef6f62a9f5c546149c2b499e98d6516e3c9556c /functions
parenta625ce959b096c61f50c03c6b5e0be09df4bb11e (diff)
downloadvyos-live-build-000ff0a0b04a8878b580eefc1a7c22486d7d4471.tar.gz
vyos-live-build-000ff0a0b04a8878b580eefc1a7c22486d7d4471.zip
Adding update repositories as volatile when building in ubuntu mode (Closes: #572983).
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/defaults.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index 05ab2fcec..0862254b6 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -344,6 +344,18 @@ Set_defaults ()
;;
esac
;;
+
+ ubuntu)
+ case "${LH_ARCHITECTURE}" in
+ amd64|i386)
+ LH_MIRROR_CHROOT_VOLATILE="http://security.ubuntu.com/ubuntu/"
+ ;;
+
+ *)
+ LH_MIRROR_CHROOT_VOLATILE="http://ports.ubuntu.com/"
+ ;;
+ esac
+ ;;
esac
LH_MIRROR_CHROOT_VOLATILE="${LH_MIRROR_CHROOT_VOLATILE:-none}"
@@ -412,6 +424,18 @@ Set_defaults ()
;;
esac
;;
+
+ ubuntu)
+ case "${LH_ARCHITECTURE}" in
+ amd64|i386)
+ LH_MIRROR_BINARY_VOLATILE="http://security.ubuntu.com/ubuntu/"
+ ;;
+
+ *)
+ LH_MIRROR_BINARY_VOLATILE="http://ports.ubuntu.com/"
+ ;;
+ esac
+ ;;
esac
LH_MIRROR_BINARY_VOLATILE="${LH_MIRROR_BINARY_VOLATILE:-none}"