aboutsummaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorJan Wagner <mail@jwagner.eu>2016-03-14 12:46:53 +0100
committerJan Wagner <mail@jwagner.eu>2016-03-14 12:46:53 +0100
commit62453b92723bf04239b06f8966f256ef0feb233e (patch)
tree48772dfb712be34aa81e4087aed5ea67f933c5d5 /files
parent9d88180e4b8d9e36b5116fc17f2408c1a592e968 (diff)
downloadrpi2-gen-image-62453b92723bf04239b06f8966f256ef0feb233e.tar.gz
rpi2-gen-image-62453b92723bf04239b06f8966f256ef0feb233e.tar.bz2
rpi2-gen-image-62453b92723bf04239b06f8966f256ef0feb233e.zip
Added: ENABLE_REDUCE - down to 160MB used space,fix-resolve,fix-machineid
Diffstat (limited to 'files')
-rw-r--r--files/apt/02nocache2
-rw-r--r--files/apt/03compress2
-rw-r--r--files/apt/04norecommends2
-rw-r--r--files/apt/05nodoc9
-rw-r--r--files/dpkg/01nodoc9
-rw-r--r--files/firstboot/23-generate-machineid.sh3
-rw-r--r--files/firstboot/24-create-resolv-symlink.sh4
7 files changed, 31 insertions, 0 deletions
diff --git a/files/apt/02nocache b/files/apt/02nocache
new file mode 100644
index 0000000..ed295c1
--- /dev/null
+++ b/files/apt/02nocache
@@ -0,0 +1,2 @@
+Dir::Cache::pkgcache "";
+Dir::Cache::srcpkgcache "";
diff --git a/files/apt/03compress b/files/apt/03compress
new file mode 100644
index 0000000..9dd10cc
--- /dev/null
+++ b/files/apt/03compress
@@ -0,0 +1,2 @@
+Acquire::GzipIndexes "true";
+Acquire::CompressionTypes::Order:: "gz";
diff --git a/files/apt/04norecommends b/files/apt/04norecommends
new file mode 100644
index 0000000..b3cfff9
--- /dev/null
+++ b/files/apt/04norecommends
@@ -0,0 +1,2 @@
+APT::Install-Suggests "0";
+APT::Install-Recommends "0";
diff --git a/files/apt/05nodoc b/files/apt/05nodoc
new file mode 100644
index 0000000..87b8255
--- /dev/null
+++ b/files/apt/05nodoc
@@ -0,0 +1,9 @@
+path-exclude /usr/share/doc/*
+path-include /usr/share/doc/*/copyright
+path-exclude /usr/share/man/*
+path-exclude /usr/share/groff/*
+path-exclude /usr/share/info/*
+path-exclude /usr/share/lintian/*
+path-exclude /usr/share/linda/*
+path-exclude /usr/share/locale/*
+path-include /usr/share/locale/en*
diff --git a/files/dpkg/01nodoc b/files/dpkg/01nodoc
new file mode 100644
index 0000000..c17061f
--- /dev/null
+++ b/files/dpkg/01nodoc
@@ -0,0 +1,9 @@
+path-exclude=/usr/share/doc/*
+path-include=/usr/share/doc/*/copyright
+path-exclude=/usr/share/man/*
+path-exclude=/usr/share/groff/*
+path-exclude=/usr/share/info/*
+path-exclude=/usr/share/lintian/*
+path-exclude=/usr/share/linda/*
+path-exclude=/usr/share/locale/*
+path-include=/usr/share/locale/en*
diff --git a/files/firstboot/23-generate-machineid.sh b/files/firstboot/23-generate-machineid.sh
new file mode 100644
index 0000000..dca48b3
--- /dev/null
+++ b/files/firstboot/23-generate-machineid.sh
@@ -0,0 +1,3 @@
+logger -t "rc.firstboot" "Generating D-Bus machine-id"
+rm -f /var/lib/dbus/machine-id
+dbus-uuidgen --ensure
diff --git a/files/firstboot/24-create-resolv-symlink.sh b/files/firstboot/24-create-resolv-symlink.sh
new file mode 100644
index 0000000..e4a65b4
--- /dev/null
+++ b/files/firstboot/24-create-resolv-symlink.sh
@@ -0,0 +1,4 @@
+logger -t "rc.firstboot" "Creating /etc/resolv.conf symlink"
+if [ -f "/run/systemd/resolve/resolv.conf" ] ; then
+ ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
+fi