summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-02-04 22:24:52 +0100
committerDaniel Baumann <daniel@debian.org>2012-02-06 23:15:13 +0100
commit5605701973d591b977b070d0dd6a130eec93013e (patch)
tree5fdb46552611706cc8b07e18cec925f383a10e8a /share
parentdb4b354436ca89edd4dfe3ab8a678be34ca3b683 (diff)
downloadvyos-live-build-5605701973d591b977b070d0dd6a130eec93013e.tar.gz
vyos-live-build-5605701973d591b977b070d0dd6a130eec93013e.zip
Adding opt-in hook to remove all sources.list files, as it's desirable in some setups.
Diffstat (limited to 'share')
-rwxr-xr-xshare/hooks/009-remove-apt-sources-lists.chroot9
1 files changed, 9 insertions, 0 deletions
diff --git a/share/hooks/009-remove-apt-sources-lists.chroot b/share/hooks/009-remove-apt-sources-lists.chroot
new file mode 100755
index 000000000..074b551a1
--- /dev/null
+++ b/share/hooks/009-remove-apt-sources-lists.chroot
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+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