summaryrefslogtreecommitdiff
path: root/scripts/build/lb_chroot_hacks
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-09-26 14:28:41 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:20:31 +0100
commit4826b8c224940efd1716f65ad61ad1c6e58d3a4d (patch)
treece3f520a21b750689e240ce381824aacebab00cc /scripts/build/lb_chroot_hacks
parentc77053d3d81ac6bf03a16bc73f4c583b55e48a3e (diff)
downloadvyos-live-build-4826b8c224940efd1716f65ad61ad1c6e58d3a4d.tar.gz
vyos-live-build-4826b8c224940efd1716f65ad61ad1c6e58d3a4d.zip
Adding option to allow using the live-media pool in live system.
Diffstat (limited to 'scripts/build/lb_chroot_hacks')
-rwxr-xr-xscripts/build/lb_chroot_hacks10
1 files changed, 10 insertions, 0 deletions
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