From 057a9097e5fbf9d7b36fc7463d72607c3983b0d3 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 25 Apr 2014 21:28:12 +0200 Subject: Updating sha1sum for recompressed initrd images (Closes: #745205). --- scripts/build/chroot_hacks | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/build') diff --git a/scripts/build/chroot_hacks b/scripts/build/chroot_hacks index 50f43cb52..bdd7d6460 100755 --- a/scripts/build/chroot_hacks +++ b/scripts/build/chroot_hacks @@ -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 -- cgit v1.2.3