summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Bex <peter@more-magic.net>2016-03-01 20:15:11 +0100
committerPeter Bex <peter@more-magic.net>2016-03-01 20:15:11 +0100
commite47778e17314e6d2a177c1df96bffc5db21c33b4 (patch)
tree4c5c273a85be0fb714fae561f93fa12e3e9f6630
parent4565103c8600ae4c09ecb80ec79bb143e46df54f (diff)
downloadvps-builder-e47778e17314e6d2a177c1df96bffc5db21c33b4.tar.gz
Add preconfigured apt/sources.list
Apparently debootstrap doesn't set up deb-src, "jessie-updates" or even security updates! It's a bit annoying to have to "hardcode" it like this.
-rw-r--r--assets/package-manager/apt/sources.list20
-rw-r--r--vps-builder.scm3
2 files changed, 23 insertions, 0 deletions
diff --git a/assets/package-manager/apt/sources.list b/assets/package-manager/apt/sources.list
new file mode 100644
index 0000000..1147787
--- /dev/null
+++ b/assets/package-manager/apt/sources.list
@@ -0,0 +1,20 @@
+# A good config when you're in the Netherlands
+# TODO: Figure out a way to make it easier to set up local mirrors
+
+deb http://ftp.surfnet.nl/os/Linux/distr/debian/ jessie main contrib non-free
+deb-src http://ftp.surfnet.nl/os/Linux/distr/debian/ jessie main contrib
+
+# Mirror
+deb ftp://mirror.nl.leaseweb.net/debian/ jessie main contrib non-free
+deb-src ftp://mirror.nl.leaseweb.net/debian/ jessie main contrib
+
+deb http://security.debian.org/ jessie/updates main contrib non-free
+deb-src http://security.debian.org/ jessie/updates main contrib
+
+# jessie-updates, previously known as 'volatile'
+deb http://ftp.surfnet.nl/os/Linux/distr/debian/ jessie-updates main contrib non-free
+deb-src http://ftp.surfnet.nl/os/Linux/distr/debian/ jessie-updates main contrib
+
+# Mirror
+deb ftp://mirror.nl.leaseweb.net/debian/ jessie-updates main contrib non-free
+deb-src ftp://mirror.nl.leaseweb.net/debian/ jessie-updates main contrib
diff --git a/vps-builder.scm b/vps-builder.scm
index 845213c..1f45c3f 100644
--- a/vps-builder.scm
+++ b/vps-builder.scm
@@ -185,6 +185,9 @@
(install-file root-dir "assets/package-manager/apt/apt-settings"
"/etc/apt/apt.conf.d/90custom-config"
"root" "root" #o644)
+ (install-file root-dir "assets/package-manager/apt/sources.list"
+ "/etc/apt/sources.list"
+ "root" "root" #o644)
(install-file root-dir "assets/fstab"
"/etc/fstab" "root" "root" #o644)
(install-file root-dir "assets/modprobe/blacklist.conf"