summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2010-09-05 00:35:17 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2010-09-05 00:35:17 +0200
commitc74cbb7b9a5821dca038e8527a27369ba84a9ef9 (patch)
treefaeced347a804906a2f1110f014ce91d82066919 /config/chroot_local-hooks
parentb7eab2a5d430ff28ec365e691cf95357798fe460 (diff)
downloadkanotix-c74cbb7b9a5821dca038e8527a27369ba84a9ef9.zip
kanotix-c74cbb7b9a5821dca038e8527a27369ba84a9ef9.tar.gz
sources.list changes
* ship pre-configured sources.list for chroot (with deb-src included) * convert sources.list.d to plain sources.list in chroot
Diffstat (limited to 'config/chroot_local-hooks')
-rw-r--r--config/chroot_local-hooks/sources.list-format19
1 files changed, 19 insertions, 0 deletions
diff --git a/config/chroot_local-hooks/sources.list-format b/config/chroot_local-hooks/sources.list-format
new file mode 100644
index 0000000..7fcf14e
--- /dev/null
+++ b/config/chroot_local-hooks/sources.list-format
@@ -0,0 +1,19 @@
+#!/bin/bash
+# update sources.list
+
+if [ -d /etc/apt/sources.list.d ]; then
+ for repo in /etc/apt/sources.list.d/*
+ do
+ case "$(basename "$repo" .list)" in
+ live.debian.net)
+ # ignore and remove these repos
+ ;;
+ *)
+ cat "$repo" >> /etc/apt/sources.list
+ echo >> /etc/apt/sources.list
+ ;;
+ esac
+ rm "$repo"
+ done
+fi
+