aboutsummaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorRiku Voipio <riku.voipio@linaro.org>2017-09-12 16:20:45 +0300
committerRiku Voipio <riku.voipio@linaro.org>2017-09-12 16:20:45 +0300
commitb88be690c7393075e5b24f8af245fd7197ee584e (patch)
treec2dedfb2fb9e3b58b78f2eefcd7c3386eccc9453 /files
downloadfai-b88be690c7393075e5b24f8af245fd7197ee584e.tar.gz
Initial linaro test
Diffstat (limited to 'files')
-rw-r--r--files/etc/apt/sources.list.d/backports.list/BACKPORTS2
-rwxr-xr-xfiles/etc/apt/sources.list.d/backports.list/preinst23
-rw-r--r--files/etc/apt/sources.list.d/linaro.list/LINARO1
-rw-r--r--files/etc/apt/sources.list.d/linaro.list/QCOM3
-rwxr-xr-xfiles/etc/apt/sources.list.d/linaro.list/preinst10
-rw-r--r--files/etc/apt/sources.list/DEBIAN3
-rwxr-xr-xfiles/etc/apt/sources.list/preinst10
-rw-r--r--files/etc/default/grub.d/10_cloud_disable_net.ifnames.cfg/CLOUD6
8 files changed, 58 insertions, 0 deletions
diff --git a/files/etc/apt/sources.list.d/backports.list/BACKPORTS b/files/etc/apt/sources.list.d/backports.list/BACKPORTS
new file mode 100644
index 0000000..8b6f4c9
--- /dev/null
+++ b/files/etc/apt/sources.list.d/backports.list/BACKPORTS
@@ -0,0 +1,2 @@
+deb {cdn}/debian {release}-backports main
+deb-src {cdn}/debian {release}-backports main
diff --git a/files/etc/apt/sources.list.d/backports.list/preinst b/files/etc/apt/sources.list.d/backports.list/preinst
new file mode 100755
index 0000000..81f7d06
--- /dev/null
+++ b/files/etc/apt/sources.list.d/backports.list/preinst
@@ -0,0 +1,23 @@
+#! /bin/bash
+
+# template expansion for sources.list:
+# replace {release} with the value of $release
+# replace {cdn} with the value of $apt_cdn
+
+# $1 is the class name used
+# $2 is the path to the file copied
+
+# check if a variable of the form {varname} was used at all
+grep -q '{' $2 || exit 0
+
+if [ -z "$release" ]; then
+ echo "\$release is undefined. Not substituting in $2."
+else
+ sed -i -e "s#{release}#$release#g" $2
+fi
+
+if [ -z "$apt_cdn" ]; then
+ echo "\$apt_cdn not defined. not substituting in $2."
+else
+ sed -i -e "s#{cdn}#$apt_cdn#g" $2
+fi
diff --git a/files/etc/apt/sources.list.d/linaro.list/LINARO b/files/etc/apt/sources.list.d/linaro.list/LINARO
new file mode 100644
index 0000000..e4da3cf
--- /dev/null
+++ b/files/etc/apt/sources.list.d/linaro.list/LINARO
@@ -0,0 +1 @@
+deb http://obs.linaro.org/qcom/${obs_release}/ ./
diff --git a/files/etc/apt/sources.list.d/linaro.list/QCOM b/files/etc/apt/sources.list.d/linaro.list/QCOM
new file mode 100644
index 0000000..de2aaba
--- /dev/null
+++ b/files/etc/apt/sources.list.d/linaro.list/QCOM
@@ -0,0 +1,3 @@
+deb http://obs.linaro.org/qcom/${obs_release}/ ./
+deb http://obs.linaro.org/linaro-overlay-${obs_release}/ ./
+
diff --git a/files/etc/apt/sources.list.d/linaro.list/preinst b/files/etc/apt/sources.list.d/linaro.list/preinst
new file mode 100755
index 0000000..ee32e3a
--- /dev/null
+++ b/files/etc/apt/sources.list.d/linaro.list/preinst
@@ -0,0 +1,10 @@
+#! /bin/bash
+
+# template expansion
+
+# $1 is the class name used
+# $2 is the path to the file copied
+
+envsubst < $2 > $2.tmp
+mv $2.tmp $2
+
diff --git a/files/etc/apt/sources.list/DEBIAN b/files/etc/apt/sources.list/DEBIAN
new file mode 100644
index 0000000..16f4420
--- /dev/null
+++ b/files/etc/apt/sources.list/DEBIAN
@@ -0,0 +1,3 @@
+deb {cdn}/debian {release} main
+deb http://security.debian.org/ {release}/updates main
+deb {cdn}/debian {release}-updates main
diff --git a/files/etc/apt/sources.list/preinst b/files/etc/apt/sources.list/preinst
new file mode 100755
index 0000000..ee32e3a
--- /dev/null
+++ b/files/etc/apt/sources.list/preinst
@@ -0,0 +1,10 @@
+#! /bin/bash
+
+# template expansion
+
+# $1 is the class name used
+# $2 is the path to the file copied
+
+envsubst < $2 > $2.tmp
+mv $2.tmp $2
+
diff --git a/files/etc/default/grub.d/10_cloud_disable_net.ifnames.cfg/CLOUD b/files/etc/default/grub.d/10_cloud_disable_net.ifnames.cfg/CLOUD
new file mode 100644
index 0000000..ad11d23
--- /dev/null
+++ b/files/etc/default/grub.d/10_cloud_disable_net.ifnames.cfg/CLOUD
@@ -0,0 +1,6 @@
+# Disable systemd's network interface name management.
+# References:
+# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863385
+# https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
+
+GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT net.ifnames=0"