[SCM] Debian Live build scripts branch, master, updated. 1.0.3-1-12-g51c0224
Daniel Baumann
daniel at debian.org
Sun Feb 8 10:00:09 UTC 2009
The following commit has been merged in the master branch:
commit 51c02249ab30cac7831729bbcfd59d76a7fb741e
Author: Daniel Baumann <daniel at debian.org>
Date: Sun Feb 8 10:58:55 2009 +0100
Moving binary manifest to live subdirectory on the images.
diff --git a/helpers/lh_binary_manifest b/helpers/lh_binary_manifest
index 940cf07..b7d5b91 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
--
Debian Live build scripts
More information about the debian-live-changes
mailing list