summaryrefslogtreecommitdiff
path: root/scripts/build
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-09-15 13:03:04 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:17:22 +0100
commit1858362d785e41eeb843c75b8c534da4563404b2 (patch)
tree853f9275d638d145e0b40b81995a0c5fbc0a45d3 /scripts/build
parent8c155c17c800e24c771a79f5c8ee433ac4fd9f3e (diff)
downloadvyos-live-build-1858362d785e41eeb843c75b8c534da4563404b2.tar.gz
vyos-live-build-1858362d785e41eeb843c75b8c534da4563404b2.zip
Adding somewhat prettier header in /etc/apt/sources.list.
Diffstat (limited to 'scripts/build')
-rwxr-xr-xscripts/build/lb_chroot_sources13
1 files changed, 11 insertions, 2 deletions
diff --git a/scripts/build/lb_chroot_sources b/scripts/build/lb_chroot_sources
index cddbd8ec0..6c95967d0 100755
--- a/scripts/build/lb_chroot_sources
+++ b/scripts/build/lb_chroot_sources
@@ -46,7 +46,12 @@ case "${1}" in
Restore_cache cache/packages_chroot
# Configure custom sources.list
- echo "deb ${LB_MIRROR_CHROOT} ${LB_DISTRIBUTION} ${LB_ARCHIVE_AREAS}" > chroot/etc/apt/sources.list
+
+cat > chroot/etc/apt/sources.list << EOF
+# /etc/apt/sources.list
+
+deb ${LB_MIRROR_CHROOT} ${LB_DISTRIBUTION} ${LB_ARCHIVE_AREAS}
+EOF
if [ "${LB_SOURCE}" = "true" ]
then
@@ -439,7 +444,11 @@ case "${1}" in
rm -rf chroot/var/lib/apt/lists
mkdir -p chroot/var/lib/apt/lists/partial
- echo "deb ${LB_MIRROR_BINARY} ${LB_DISTRIBUTION} ${LB_ARCHIVE_AREAS}" > chroot/etc/apt/sources.list
+cat > chroot/etc/apt/sources.lis << EOF
+# /etc/apt/sources.list
+
+deb ${LB_MIRROR_BINARY} ${LB_DISTRIBUTION} ${LB_ARCHIVE_AREAS}
+EOF
if [ "${LB_SOURCE}" = "true" ]
then