summaryrefslogtreecommitdiff
path: root/scripts/build/chroot_hacks
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2014-04-25 21:28:12 +0200
committerDaniel Baumann <mail@daniel-baumann.ch>2014-04-26 08:05:32 +0200
commit057a9097e5fbf9d7b36fc7463d72607c3983b0d3 (patch)
tree4a7016c1274397ce8e353377ad6ea2af7ef1def3 /scripts/build/chroot_hacks
parent9db58d9489df12a9f7354645dac59a2748d3c802 (diff)
downloadvyos-live-build-057a9097e5fbf9d7b36fc7463d72607c3983b0d3.tar.gz
vyos-live-build-057a9097e5fbf9d7b36fc7463d72607c3983b0d3.zip
Updating sha1sum for recompressed initrd images (Closes: #745205).
Diffstat (limited to 'scripts/build/chroot_hacks')
-rwxr-xr-xscripts/build/chroot_hacks2
1 files changed, 2 insertions, 0 deletions
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