diff --git a/debian/bin/sparc32-image-postproc b/debian/bin/sparc32-image-postproc new file mode 100755 index 000000000..f88d90c84 --- /dev/null +++ b/debian/bin/sparc32-image-postproc @@ -0,0 +1,10 @@ +#!/bin/sh +# It is a bit cumbersome here. Since we are executed when +# the image is already installed and in place, we must +# unpack it, then strip it, then gzip it again. +image_dest="${IMAGE_TOP}/boot/vmlinuz-${version}" +image_temp="$(mktemp)" +gzip -dc "${image_dest}" > "${image_temp}" +strip -R .comment -R .note -K sun4u_init -K _end -K _start "${image_temp}" +gzip -9c "${image_temp}" > "${image_dest}" +rm -rf "${image_temp}"