Standardize to machine readable package manifest.
This commit is contained in:
parent
c58ddcfa3b
commit
5e8fa3000f
|
@ -45,9 +45,6 @@ Create_lockfile .lock
|
||||||
case "${LH_INITRAMFS}" in
|
case "${LH_INITRAMFS}" in
|
||||||
casper)
|
casper)
|
||||||
INITFS="casper"
|
INITFS="casper"
|
||||||
|
|
||||||
# Add filesystem.manifest
|
|
||||||
Chroot chroot "dpkg --get-selections" | awk '{ print $1 }' | sort -u > binary/casper/filesystem.manifest
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
live-initramfs)
|
live-initramfs)
|
||||||
|
@ -55,16 +52,10 @@ case "${LH_INITRAMFS}" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Add packages.list
|
# Add filesystem.manifest
|
||||||
cat > binary/${INITFS}/packages.txt << EOF
|
Chroot chroot "dpkg-query -W" > binary/"${INITFS}"/filesystem.manifest
|
||||||
This file contains the list of all packages installed in this live system.
|
# Copy filesystem.manifest in image to binary.manifest as build output.
|
||||||
|
cp binary/"${INITFS}"/filesystem.manifest binary.manifest
|
||||||
|
|
||||||
EOF
|
|
||||||
|
|
||||||
Chroot chroot "dpkg -l" >> binary/${INITFS}/packages.txt
|
|
||||||
|
|
||||||
cp binary/${INITFS}/packages.txt binary.packages
|
|
||||||
|
|
||||||
# Creating stage file
|
# Creating stage file
|
||||||
Create_stagefile .stage/binary_manifest
|
Create_stagefile .stage/binary_manifest
|
||||||
|
|
Loading…
Reference in New Issue