summaryrefslogtreecommitdiff
path: root/share/hooks
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2013-05-06 14:48:46 +0200
committerDaniel Baumann <mail@daniel-baumann.ch>2013-05-06 14:48:46 +0200
commitd1047e809a90daa0e88329efc0db21931be0b919 (patch)
tree5dc92aaaeb4d15dcad4796935b90a9675be93ad5 /share/hooks
parent160d6bade79bf58a1c0d1842dc9b55ec178ec303 (diff)
downloadvyos-live-build-d1047e809a90daa0e88329efc0db21931be0b919.tar.gz
vyos-live-build-d1047e809a90daa0e88329efc0db21931be0b919.zip
Adding debian version 4.0~a1-1.debian/4.0_a1-1
Diffstat (limited to 'share/hooks')
-rwxr-xr-xshare/hooks/0010-disable-kexec-tools.chroot16
-rwxr-xr-xshare/hooks/0010-update-apt-file-cache.chroot (renamed from share/hooks/0300-update-apt-file-cache.chroot)0
-rwxr-xr-xshare/hooks/0020-update-apt-xapian-index.chroot (renamed from share/hooks/0310-update-apt-xapian-index.chroot)0
-rwxr-xr-xshare/hooks/0030-update-mlocate-database.chroot (renamed from share/hooks/0330-update-mlocate-database.chroot)0
-rwxr-xr-xshare/hooks/0040-remove-dbus-machine-id.chroot (renamed from share/hooks/0120-remove-dbus-machine-id.chroot)0
-rwxr-xr-xshare/hooks/0050-remove-gnome-icon-cache.chroot (renamed from share/hooks/0130-remove-gnome-icon-cache.chroot)2
-rwxr-xr-xshare/hooks/0060-remove-openssh-server-host-keys.chroot (renamed from share/hooks/0160-remove-openssh-server-host-keys.chroot)0
-rwxr-xr-xshare/hooks/0070-remove-python-py.chroot (renamed from share/hooks/0170-remove-python-py.chroot)0
-rwxr-xr-xshare/hooks/0080-remove-udev-persistent-rules.chroot (renamed from share/hooks/0200-remove-udev-persistent-rules.chroot)0
-rwxr-xr-xshare/hooks/0090-remove-apt-sources-lists.chroot (renamed from share/hooks/0910-remove-apt-sources-lists.chroot)1
-rwxr-xr-xshare/hooks/0100-remove-adjtime-configuration.chroot20
-rwxr-xr-xshare/hooks/0100-remove-linux-image-backups.chroot8
-rwxr-xr-xshare/hooks/0110-remove-backup-files.chroot18
-rwxr-xr-xshare/hooks/0140-remove-log-files.chroot9
-rwxr-xr-xshare/hooks/0150-remove-mdadm-configuration.chroot7
-rwxr-xr-xshare/hooks/0180-remove-systemd-machine-id.chroot9
-rwxr-xr-xshare/hooks/0190-remove-temporary-files.chroot14
-rwxr-xr-xshare/hooks/0320-update-glx-alternative.chroot9
-rwxr-xr-xshare/hooks/0340-update-nvidia-alternative.chroot9
19 files changed, 10 insertions, 112 deletions
diff --git a/share/hooks/0010-disable-kexec-tools.chroot b/share/hooks/0010-disable-kexec-tools.chroot
deleted file mode 100755
index 403d1d413..000000000
--- a/share/hooks/0010-disable-kexec-tools.chroot
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-set -e
-
-# Disable kexec-tools
-
-if [ -e /sbin/kexec ]
-then
- echo "kexec-tools kexec-tools/load_kexec boolean false" > /root/preseed
-
- debconf-set-selections /root/preseed
-
- rm -f /root/preseed
-
- dpkg-reconfigure kexec-tools
-fi
diff --git a/share/hooks/0300-update-apt-file-cache.chroot b/share/hooks/0010-update-apt-file-cache.chroot
index 60a00b39c..60a00b39c 100755
--- a/share/hooks/0300-update-apt-file-cache.chroot
+++ b/share/hooks/0010-update-apt-file-cache.chroot
diff --git a/share/hooks/0310-update-apt-xapian-index.chroot b/share/hooks/0020-update-apt-xapian-index.chroot
index dcb39b261..dcb39b261 100755
--- a/share/hooks/0310-update-apt-xapian-index.chroot
+++ b/share/hooks/0020-update-apt-xapian-index.chroot
diff --git a/share/hooks/0330-update-mlocate-database.chroot b/share/hooks/0030-update-mlocate-database.chroot
index 6bfdb3d4f..6bfdb3d4f 100755
--- a/share/hooks/0330-update-mlocate-database.chroot
+++ b/share/hooks/0030-update-mlocate-database.chroot
diff --git a/share/hooks/0120-remove-dbus-machine-id.chroot b/share/hooks/0040-remove-dbus-machine-id.chroot
index 230099e46..230099e46 100755
--- a/share/hooks/0120-remove-dbus-machine-id.chroot
+++ b/share/hooks/0040-remove-dbus-machine-id.chroot
diff --git a/share/hooks/0130-remove-gnome-icon-cache.chroot b/share/hooks/0050-remove-gnome-icon-cache.chroot
index ab35a1d68..f562fd939 100755
--- a/share/hooks/0130-remove-gnome-icon-cache.chroot
+++ b/share/hooks/0050-remove-gnome-icon-cache.chroot
@@ -4,6 +4,6 @@ set -e
# Remove GNOME icon cache.
#
-# This saves space some space.
+# This saves space some space (e.g. on Kubuntu).
rm -f /usr/share/icons/*/icon-theme.cache
diff --git a/share/hooks/0160-remove-openssh-server-host-keys.chroot b/share/hooks/0060-remove-openssh-server-host-keys.chroot
index 862704981..862704981 100755
--- a/share/hooks/0160-remove-openssh-server-host-keys.chroot
+++ b/share/hooks/0060-remove-openssh-server-host-keys.chroot
diff --git a/share/hooks/0170-remove-python-py.chroot b/share/hooks/0070-remove-python-py.chroot
index ff705838f..ff705838f 100755
--- a/share/hooks/0170-remove-python-py.chroot
+++ b/share/hooks/0070-remove-python-py.chroot
diff --git a/share/hooks/0200-remove-udev-persistent-rules.chroot b/share/hooks/0080-remove-udev-persistent-rules.chroot
index 148ba30d1..148ba30d1 100755
--- a/share/hooks/0200-remove-udev-persistent-rules.chroot
+++ b/share/hooks/0080-remove-udev-persistent-rules.chroot
diff --git a/share/hooks/0910-remove-apt-sources-lists.chroot b/share/hooks/0090-remove-apt-sources-lists.chroot
index 1c8ca2d22..074b551a1 100755
--- a/share/hooks/0910-remove-apt-sources-lists.chroot
+++ b/share/hooks/0090-remove-apt-sources-lists.chroot
@@ -5,4 +5,5 @@ set -e
# Remove apt sources.list files
rm -f /etc/apt/sources.list
+rm -f /etc/apt/sources.list~
rm -f /etc/apt/sources.list.d/*.list
diff --git a/share/hooks/0100-remove-adjtime-configuration.chroot b/share/hooks/0100-remove-adjtime-configuration.chroot
deleted file mode 100755
index 5625effb8..000000000
--- a/share/hooks/0100-remove-adjtime-configuration.chroot
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-
-set -e
-
-# Reset generated file
-
-if [ -e /run ]
-then
- # wheezy
-
-cat > /etc/adjtime << EOF
-0.0 0 0.0
-0
-UTC
-EOF
-
-else
- # squeeze
- echo "0.0 0 0.0" > /etc/adjtime
-fi
diff --git a/share/hooks/0100-remove-linux-image-backups.chroot b/share/hooks/0100-remove-linux-image-backups.chroot
new file mode 100755
index 000000000..1302d6c93
--- /dev/null
+++ b/share/hooks/0100-remove-linux-image-backups.chroot
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+# Remove backup files
+
+rm -f /boot/*.bak
+rm -f /boot/*.old-dkms
diff --git a/share/hooks/0110-remove-backup-files.chroot b/share/hooks/0110-remove-backup-files.chroot
deleted file mode 100755
index 55a6b75af..000000000
--- a/share/hooks/0110-remove-backup-files.chroot
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh
-
-set -e
-
-# Remove backup files
-rm -f /boot/*.bak
-rm -f /boot/*.old-dkms
-
-rm -f /etc/apt/sources.list~
-rm -f /etc/apt/trusted.gpg~
-
-rm -f /etc/passwd-
-rm -f /etc/group-
-rm -f /etc/shadow-
-rm -f /etc/gshadow-
-
-rm -f /var/cache/debconf/*-old
-rm -f /var/lib/dpkg/*-old
diff --git a/share/hooks/0140-remove-log-files.chroot b/share/hooks/0140-remove-log-files.chroot
deleted file mode 100755
index f95e54686..000000000
--- a/share/hooks/0140-remove-log-files.chroot
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-set -e
-
-# Truncate log files
-for _FILE in $(find /var/log/ -type f)
-do
- : > ${_FILE}
-done
diff --git a/share/hooks/0150-remove-mdadm-configuration.chroot b/share/hooks/0150-remove-mdadm-configuration.chroot
deleted file mode 100755
index 206b494da..000000000
--- a/share/hooks/0150-remove-mdadm-configuration.chroot
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-
-set -e
-
-# Remove generated files
-
-rm -f /etc/mdadm/mdadm.conf
diff --git a/share/hooks/0180-remove-systemd-machine-id.chroot b/share/hooks/0180-remove-systemd-machine-id.chroot
deleted file mode 100755
index 52ba38fd4..000000000
--- a/share/hooks/0180-remove-systemd-machine-id.chroot
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-set -e
-
-# Remove systemd machine id.
-#
-# This removes systemd machine id that cache that makes each system unique.
-
-rm -f /etc/machine-id
diff --git a/share/hooks/0190-remove-temporary-files.chroot b/share/hooks/0190-remove-temporary-files.chroot
deleted file mode 100755
index fd220e030..000000000
--- a/share/hooks/0190-remove-temporary-files.chroot
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-
-set -e
-
-# Remove temporary files
-rm -rf /var/cache/man/*
-
-for _DIRECTORY in /tmp /var/tmp
-do
- rm -rf ${_DIRECTORY}
-
- mkdir -p ${_DIRECTORY}
- chmod 1777 ${_DIRECTORY}
-done
diff --git a/share/hooks/0320-update-glx-alternative.chroot b/share/hooks/0320-update-glx-alternative.chroot
deleted file mode 100755
index 8c36c43f9..000000000
--- a/share/hooks/0320-update-glx-alternative.chroot
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-set -e
-
-# Use mesa renderer by default
-if [ -e /etc/alternatives/glx ]
-then
- update-alternatives --quiet --set glx /usr/lib/mesa-diverted
-fi
diff --git a/share/hooks/0340-update-nvidia-alternative.chroot b/share/hooks/0340-update-nvidia-alternative.chroot
deleted file mode 100755
index e73b9678b..000000000
--- a/share/hooks/0340-update-nvidia-alternative.chroot
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-set -e
-
-# Use newest nvidia version by default
-if [ -e /etc/alternatives/nvidia ] && [ -e /usr/lib/nvidia/current ]
-then
- update-alternatives --quiet --set nvidia /usr/lib/nvidia/current
-fi