summaryrefslogtreecommitdiff
path: root/export-image/01-set-sources
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.org>2016-05-05 19:43:33 +0100
committerSerge Schneider <serge@raspberrypi.org>2016-05-05 21:21:42 +0100
commitbdca3e3b48e72df796ec7b1a24a26c08b2dcfa67 (patch)
tree8d64818c7e99350b5c306144d3a0726626745619 /export-image/01-set-sources
parent19a1b94d2a34b795e570f25708fa0ae45bcbbf38 (diff)
Rework
Diffstat (limited to 'export-image/01-set-sources')
-rw-r--r--export-image/01-set-sources/00-patches/0-sources.diff9
-rw-r--r--export-image/01-set-sources/00-patches/series1
-rwxr-xr-xexport-image/01-set-sources/01-run.sh7
3 files changed, 17 insertions, 0 deletions
diff --git a/export-image/01-set-sources/00-patches/0-sources.diff b/export-image/01-set-sources/00-patches/0-sources.diff
new file mode 100644
index 0000000..d46afe6
--- /dev/null
+++ b/export-image/01-set-sources/00-patches/0-sources.diff
@@ -0,0 +1,9 @@
+Index: export-jessie/rootfs/etc/apt/sources.list.d/raspi.list
+===================================================================
+--- export-jessie.orig/rootfs/etc/apt/sources.list.d/raspi.list
++++ export-jessie/rootfs/etc/apt/sources.list.d/raspi.list
+@@ -1,3 +1,3 @@
+-deb http://archive.raspberrypi.org/debian/ jessie main ui staging
++deb http://archive.raspberrypi.org/debian/ jessie main ui
+ # Uncomment line below then 'apt-get update' to enable 'apt-get source'
+ #deb-src http://archive.raspberrypi.org/debian/ jessie main ui
diff --git a/export-image/01-set-sources/00-patches/series b/export-image/01-set-sources/00-patches/series
new file mode 100644
index 0000000..49ccdbc
--- /dev/null
+++ b/export-image/01-set-sources/00-patches/series
@@ -0,0 +1 @@
+0-sources.diff
diff --git a/export-image/01-set-sources/01-run.sh b/export-image/01-set-sources/01-run.sh
new file mode 100755
index 0000000..638b581
--- /dev/null
+++ b/export-image/01-set-sources/01-run.sh
@@ -0,0 +1,7 @@
+#!/bin/bash -e
+
+on_chroot sh -e - <<EOF
+apt-get update
+apt-get -y dist-upgrade
+apt-get clean
+EOF