summaryrefslogtreecommitdiff
path: root/helpers/binary_manifest
diff options
context:
space:
mode:
authorCody A.W. Somerville <cody.somerville@canonical.com>2010-05-21 07:25:26 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:17:10 +0100
commit5e8fa3000ff844856664a8957a8e5b2e07c8d497 (patch)
tree68511f45ea065afdb50cc9178e085ead1625b158 /helpers/binary_manifest
parentc58ddcfa3bc28a38e540b0494bee71f23276ffdf (diff)
downloadlive-build-5e8fa3000ff844856664a8957a8e5b2e07c8d497.zip
live-build-5e8fa3000ff844856664a8957a8e5b2e07c8d497.tar.gz
Standardize to machine readable package manifest.
Diffstat (limited to 'helpers/binary_manifest')
-rwxr-xr-xhelpers/binary_manifest17
1 files changed, 4 insertions, 13 deletions
diff --git a/helpers/binary_manifest b/helpers/binary_manifest
index a3c304a..4ec95eb 100755
--- a/helpers/binary_manifest
+++ b/helpers/binary_manifest
@@ -45,9 +45,6 @@ Create_lockfile .lock
case "${LH_INITRAMFS}" in
casper)
INITFS="casper"
-
- # Add filesystem.manifest
- Chroot chroot "dpkg --get-selections" | awk '{ print $1 }' | sort -u > binary/casper/filesystem.manifest
;;
live-initramfs)
@@ -55,16 +52,10 @@ case "${LH_INITRAMFS}" in
;;
esac
-# Add packages.list
-cat > binary/${INITFS}/packages.txt << EOF
-This file contains the list of all packages installed in this live system.
-
-
-EOF
-
-Chroot chroot "dpkg -l" >> binary/${INITFS}/packages.txt
-
-cp binary/${INITFS}/packages.txt binary.packages
+# Add filesystem.manifest
+Chroot chroot "dpkg-query -W" > binary/"${INITFS}"/filesystem.manifest
+# Copy filesystem.manifest in image to binary.manifest as build output.
+cp binary/"${INITFS}"/filesystem.manifest binary.manifest
# Creating stage file
Create_stagefile .stage/binary_manifest