summaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
authorChris Lamb <lamby@debian.org>2008-09-27 22:41:42 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:42 +0100
commit7bc94cef9913d97361a565e505cb1628349783a6 (patch)
tree608bac2fa66c477c8e9c2f0166d2660bdd758ee0 /helpers
parentab1e4ce5a803804edbec20c9c8fbae79f31fa23e (diff)
downloadvyos-live-build-7bc94cef9913d97361a565e505cb1628349783a6.tar.gz
vyos-live-build-7bc94cef9913d97361a565e505cb1628349783a6.zip
Don't build up source package list inside chroot.
Diffstat (limited to 'helpers')
-rwxr-xr-xhelpers/lh_clean1
-rwxr-xr-xhelpers/lh_source_debian16
2 files changed, 9 insertions, 8 deletions
diff --git a/helpers/lh_clean b/helpers/lh_clean
index aafef4f72..23c4967cb 100755
--- a/helpers/lh_clean
+++ b/helpers/lh_clean
@@ -111,6 +111,7 @@ do
rm -f source*.tar
rm -f source*.tar.gz
rm -f source.list
+ rm -f source-selection.txt
rm -rf source
diff --git a/helpers/lh_source_debian b/helpers/lh_source_debian
index 247543ef9..fdcbb2d87 100755
--- a/helpers/lh_source_debian
+++ b/helpers/lh_source_debian
@@ -54,9 +54,9 @@ then
fi
# Download sources
-Chroot "dpkg --get-selections" | awk '{ print $1 }' > chroot/root/dpkg-selection.txt
+Chroot "dpkg --get-selections" | awk '{ print $1 }' > source-selection.txt
-cat >> chroot/root/dpkg-selection.txt << EOF
+cat >> source-selection.txt << EOF
${LH_BOOTLOADER}
live-helper
${LH_INITRAMFS}
@@ -71,7 +71,7 @@ EOF
case "${LH_ARCHITECTURE}" in
amd64|i386)
-cat >> chroot/root/dpkg-selection.txt << EOF
+cat >> source-selection.txt << EOF
mtools
syslinux
grub
@@ -79,22 +79,22 @@ EOF
if [ "${LH_MEMTEST}" != "disabled" ] && [ "${LH_MEMTEST}" != "none" ]
then
- echo "${LH_MEMTEST}" >> chroot/root/dpkg-selection.txt
+ echo "${LH_MEMTEST}" >> source-selection.txt
fi
;;
powerpc)
- echo "yaboot" >> chroot/root/dpkg-selection.txt
+ echo "yaboot" >> source-selection.txt
;;
silo)
- echo "silo" >> chroot/root/dpkg-selection.txt
+ echo "silo" >> source-selection.txt
;;
esac
MISSING=""
-grep . chroot/root/dpkg-selection.txt | \
+grep . source-selection.txt | \
while read PACKAGE
do
if ! Chroot "apt-get ${APT_OPTIONS} --download-only source ${PACKAGE}"
@@ -117,7 +117,7 @@ EOF
done
fi
-rm -f chroot/root/dpkg-selection.txt
+rm -f source-selection.txt
# Sort sources
for DSC in chroot/*.dsc