summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-04-11 18:18:04 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:32 +0100
commitea154f86098cce8b2e5f6c4f3769f525423c735f (patch)
tree352d9ecc57781e1343e6a18f801ee50a09410496
parentc3462bceab11fc761a254bdfbdb4efaeac48223d (diff)
downloadlive-build-ea154f86098cce8b2e5f6c4f3769f525423c735f.zip
live-build-ea154f86098cce8b2e5f6c4f3769f525423c735f.tar.gz
Also adding a packages.txt when building etch images, although there is a casper/filesystem.manifest already.
-rwxr-xr-xhelpers/lh_binary_manifest18
1 files changed, 7 insertions, 11 deletions
diff --git a/helpers/lh_binary_manifest b/helpers/lh_binary_manifest
index 8251de7..2bce9e1 100755
--- a/helpers/lh_binary_manifest
+++ b/helpers/lh_binary_manifest
@@ -42,24 +42,20 @@ Check_lockfile .lock
# Creating lock file
Create_lockfile .lock
-case "${LH_INITRAMFS}" in
- casper)
- # Add filesystem.manifest
- Chroot "dpkg --get-selections" | awk '{ print $1 }' | sort -u > binary/casper/filesystem.manifest
- ;;
-
- live-initramfs)
- # Add packages.list
+if [ "${LH_INITRAMFS}" = "casper" ]
+then
+ # Add filesystem.manifest
+ Chroot "dpkg --get-selections" | awk '{ print $1 }' | sort -u > binary/casper/filesystem.manifest
+fi
+# Add packages.list
cat > binary/packages.txt << EOF
This file contains the list of all packages installed in this live system.
EOF
- Chroot "dpkg -l" >> binary/packages.txt
- ;;
-esac
+Chroot "dpkg -l" >> binary/packages.txt
# Creating stage file
Create_stagefile .stage/binary_manifest