summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks/xx-sources.list
diff options
context:
space:
mode:
authorHolger Paradies <retabell@gmx.de>2024-02-11 11:44:38 +0100
committerHolger Paradies <retabell@gmx.de>2024-02-11 11:44:38 +0100
commitcccad9261f3a6c46cc1420e2ffd2d79f23bc0e5e (patch)
tree4f9eab3af236cbc2e2e6474a10dccd96007013d8 /config/chroot_local-hooks/xx-sources.list
parent162faa640fba315d72c5ee57915c9d382c449803 (diff)
downloadkanotix-cccad9261f3a6c46cc1420e2ffd2d79f23bc0e5e.zip
kanotix-cccad9261f3a6c46cc1420e2ffd2d79f23bc0e5e.tar.gz
Update and rework debpool features
Diffstat (limited to 'config/chroot_local-hooks/xx-sources.list')
-rwxr-xr-xconfig/chroot_local-hooks/xx-sources.list7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/chroot_local-hooks/xx-sources.list b/config/chroot_local-hooks/xx-sources.list
index 9ea083f..5d1616e 100755
--- a/config/chroot_local-hooks/xx-sources.list
+++ b/config/chroot_local-hooks/xx-sources.list
@@ -10,3 +10,10 @@ case "${LB_DISTRIBUTION}" in
esac
sed -i -e "s#${LB_MIRROR_CHROOT}#http://deb.debian.org/debian#"g /etc/apt/sources.list
+
+# update apt index debpool
+cp -f /etc/apt/sources.list /etc/apt/sources.list.bak
+sed -i '/live/!d' /etc/apt/sources.list
+apt-get update
+cp -f /etc/apt/sources.list.bak /etc/apt/sources.list
+rm -f /etc/apt/sources.list.bak