summaryrefslogtreecommitdiff
path: root/scripts/build/lb_chroot
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2011-06-11 16:36:44 +0200
committerDaniel Baumann <daniel@debian.org>2011-06-11 17:26:47 +0200
commit238ae93f4194dd6c43a146cb4e8d87825a4702f0 (patch)
treeee4565c11c895e295df3df22356ff62c689aef48 /scripts/build/lb_chroot
parent65b7eb99f87c12741b1d6bb7640d8fdb7ad4a14f (diff)
downloadvyos-live-build-238ae93f4194dd6c43a146cb4e8d87825a4702f0.tar.gz
vyos-live-build-238ae93f4194dd6c43a146cb4e8d87825a4702f0.zip
Allow to optionally run package installation in two passes. Eventually, this allows to have media containing a 'bigger' live system that what they end up installing (Closes: #627439).
Diffstat (limited to 'scripts/build/lb_chroot')
-rwxr-xr-xscripts/build/lb_chroot17
1 files changed, 12 insertions, 5 deletions
diff --git a/scripts/build/lb_chroot b/scripts/build/lb_chroot
index 0b9e39fd2..eb4781dc0 100755
--- a/scripts/build/lb_chroot
+++ b/scripts/build/lb_chroot
@@ -55,11 +55,18 @@ lb chroot_sources install ${*}
lb chroot_linux-image ${*}
lb chroot_preseed ${*}
lb chroot_local-preseed ${*}
-lb chroot_packagelists ${*}
-lb chroot_local-packagelists ${*}
-lb chroot_local-packages ${*}
-lb chroot_install-packages ${*}
-lb chroot_local-tasklists ${*}
+
+for _PASS in install live
+do
+ lb chroot_packagelists ${_PASS} ${*}
+ lb chroot_local-packagelists ${_PASS} ${*}
+ lb chroot_local-packages ${_PASS} ${*}
+ lb chroot_install-packages ${_PASS} ${*}
+ lb chroot_local-tasklists ${_PASS} ${*}
+
+ Chroot chroot "dpkg-query -W" > binary.packages.${_PASS}
+done
+
lb chroot_local-includes ${*}
lb chroot_local-patches ${*}
lb chroot_local-hooks ${*}