summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Paradies <retabell@gmx.de>2021-04-03 13:56:04 +0200
committerHolger Paradies <retabell@gmx.de>2021-04-03 14:00:39 +0200
commitd75c5c0a77dc9c99782e48b85dd2c7827325e9ac (patch)
tree4719c29f5ff325d38597a81e1043f32afd065718
parent382df6c7144398a65779657a840d1e414b39069c (diff)
downloadkanotix-d75c5c0a77dc9c99782e48b85dd2c7827325e9ac.zip
kanotix-d75c5c0a77dc9c99782e48b85dd2c7827325e9ac.tar.gz
Move sources.list Hook to chroot
-rw-r--r--auto/functions/prepare-chroot-sources-list-hook6
1 files changed, 4 insertions, 2 deletions
diff --git a/auto/functions/prepare-chroot-sources-list-hook b/auto/functions/prepare-chroot-sources-list-hook
index a7f8734..fd0948a 100644
--- a/auto/functions/prepare-chroot-sources-list-hook
+++ b/auto/functions/prepare-chroot-sources-list-hook
@@ -2,7 +2,7 @@
current_script="$(basename "$0"|sed 's/^lb_//')"
-if [ "$current_script" = "chroot_includes" ]; then
+if [ "$current_script" = "chroot" ]; then
# Including common functions
[ -e "${LIVE_BUILD}/scripts/build.sh" ] && . "${LIVE_BUILD}/scripts/build.sh" ||
@@ -24,10 +24,12 @@ Set_defaults
echo "DEBUG: LB_PARENT_MIRROR ${LB_PARENT_MIRROR}"
echo "DEBUG: LB_MIRROR_CHROOT ${LB_MIRROR_CHROOT}"
echo "DEBUG: LB_PARENT_MIRROR_BINARY ${LB_PARENT_MIRROR_BINARY}"
+ echo "DEBUG: LB_ARCHIVES ${LB_ARCHIVES}"
fi
if [ -e config/chroot_local-includes/etc/apt/sources.list ]; then
- echo "Sources.list found"
+ echo "sources.list found in config/chroot_local-includes/"
sed -i -e "s#@MIRRORDUMMY@#${LB_MIRROR_CHROOT}#"g config/chroot_local-includes/etc/apt/sources.list
+ cat config/chroot_local-includes/etc/apt/sources.list
fi
fi