From 4826b8c224940efd1716f65ad61ad1c6e58d3a4d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 26 Sep 2010 14:28:41 +0200 Subject: Adding option to allow using the live-media pool in live system. --- scripts/build/lb_chroot_hacks | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'scripts/build/lb_chroot_hacks') diff --git a/scripts/build/lb_chroot_hacks b/scripts/build/lb_chroot_hacks index 47124bedc..8ec990110 100755 --- a/scripts/build/lb_chroot_hacks +++ b/scripts/build/lb_chroot_hacks @@ -215,6 +215,16 @@ then rm -f chroot/etc/fstab fi +if [ "${LB_BINARY_POOL}" = "true" ] +then + echo "deb file:/live/image/debian ${LB_DISTRIBUTION} ${LB_ARCHIVE_AREAS}" > chroot/etc/apt/sources.list.d/live-media.list + + if [ "${LB_SOURCE}" = "true" ] + then + echo "deb-src file:/live/image/debian ${LB_DISTRIBUTION} ${LB_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list.d/live-media.list + fi +fi + if [ "${LB_EXPOSED_ROOT}" = "true" ] then # Make sure RW dirs exist so that the initramfs script has -- cgit v1.2.3