Moving binary manifest to live subdirectory on the images.

This commit is contained in:
Daniel Baumann 2009-02-08 10:58:55 +01:00
parent e1a28cd98c
commit a010abf10e
1 changed files with 15 additions and 8 deletions

View File

@ -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