summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2009-02-08 10:58:55 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:09:41 +0100
commita010abf10e78ac3385af9094e320c462cdd3a59a (patch)
tree4f09ae2b5f2c09124fc279855d1aaceb908c1a8a
parente1a28cd98caeb7575364e011158f7582b46a33d9 (diff)
downloadvyos-live-build-a010abf10e78ac3385af9094e320c462cdd3a59a.tar.gz
vyos-live-build-a010abf10e78ac3385af9094e320c462cdd3a59a.zip
Moving binary manifest to live subdirectory on the images.
-rwxr-xr-xhelpers/lh_binary_manifest23
1 files changed, 15 insertions, 8 deletions
diff --git a/helpers/lh_binary_manifest b/helpers/lh_binary_manifest
index 940cf07b0..b7d5b91af 100755
--- a/helpers/lh_binary_manifest
+++ b/helpers/lh_binary_manifest
@@ -37,22 +37,29 @@ Check_lockfile .lock
# Creating lock file
Create_lockfile .lock
-if [ "${LH_INITRAMFS}" = "casper" ]
-then
- # Add filesystem.manifest
- Chroot chroot "dpkg --get-selections" | awk '{ print $1 }' | sort -u > binary/casper/filesystem.manifest
-fi
+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)
+ INITFS="live"
+ ;;
+esac
# Add packages.list
-cat > binary/packages.txt << EOF
+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/packages.txt
+Chroot chroot "dpkg -l" >> binary/${INITFS}/packages.txt
-cp binary/packages.txt binary.packages
+cp binary/${INITFS}/packages.txt binary.packages
# Creating stage file
Create_stagefile .stage/binary_manifest