Updating sha1sum for recompressed initrd images (Closes: #745205).

This commit is contained in:
Daniel Baumann 2014-04-25 21:28:12 +02:00
parent 9db58d9489
commit 057a9097e5
1 changed files with 2 additions and 0 deletions

View File

@ -90,6 +90,7 @@ case "${LB_INITRAMFS_COMPRESSION}" in
for INITRAMFS in $(find chroot/boot -name 'initrd*'); do
zcat "${INITRAMFS}" | bzip2 -c ${BZIP2_OPTIONS} > "${INITRAMFS}.new"
mv "${INITRAMFS}.new" "${INITRAMFS}"
echo "$(sha1sum ${INITRAMFS} | awk '{ print $1 }') /boot/$(basename ${INITRAMFS})" > chroot/var/lib/initramfs-tools/$(basename ${INITRAMFS} | sed -e 's|initrd.img-||')
done
;;
@ -97,6 +98,7 @@ case "${LB_INITRAMFS_COMPRESSION}" in
for INITRAMFS in $(find chroot/boot -name 'initrd*'); do
zcat "${INITRAMFS}" | lzma -c ${LZMA_OPTIONS} > "${INITRAMFS}.new"
mv "${INITRAMFS}.new" "${INITRAMFS}"
echo "$(sha1sum ${INITRAMFS} | awk '{ print $1 }') /boot/$(basename ${INITRAMFS})" > chroot/var/lib/initramfs-tools/$(basename ${INITRAMFS} | sed -e 's|initrd.img-||')
done
;;
esac