From 238ae93f4194dd6c43a146cb4e8d87825a4702f0 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 11 Jun 2011 16:36:44 +0200 Subject: 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). --- scripts/build/lb_chroot | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'scripts/build/lb_chroot') 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 ${*} -- cgit v1.2.3