summaryrefslogtreecommitdiff
path: root/scripts/build/lb_binary_manifest
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_binary_manifest
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_binary_manifest')
-rwxr-xr-xscripts/build/lb_binary_manifest7
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/build/lb_binary_manifest b/scripts/build/lb_binary_manifest
index 0ae9051d8..e80d7808b 100755
--- a/scripts/build/lb_binary_manifest
+++ b/scripts/build/lb_binary_manifest
@@ -61,10 +61,9 @@ case "${LB_INITRAMFS}" in
esac
# Add filesystem.packages
-Chroot chroot "dpkg-query -W" > binary/"${INITFS}"/filesystem.${SUFFIX}
-
-# Copy manifest as build output.
-cp binary/"${INITFS}"/filesystem.${SUFFIX} binary.${SUFFIX}
+cp binary.packages.live "binary/${INITFS}/filesystem.${SUFFIX}"
+echo "$(diff binary.packages.live binary.packages.install | awk '/^< / { print $2 }')" \
+ > "binary/${INITFS}/filesystem.${SUFFIX}-remove"
# Creating stage file
Create_stagefile .stage/binary_manifest