Package: ltsp-client-core Version: 5.5.4-1 Severity: serious Tags: patch When removing a linux-image package on an armhf system (and presumably armel as well), mkimage is called in the ltsp-client hook /etc/kernel/postrm.d/update-kernels, and generates output that causes the package removal to fail...
Removing symbolic link initrd.img.old
You may need to re-run your boot loader
Purging configuration files for linux-image-3.16.0-4-armmp-lpae (3.16.7-2) ...
dpkg: error processing package linux-image-3.16.0-4-armmp-lpae (--purge):
subprocess installed post-removal script returned error exit status 128
Errors were encountered while processing:
linux-image-3.16.0-4-armmp-lpae
E: Sub-process /usr/bin/dpkg returned an error code (1)
The following patch fixes this by redirecting the mkimage output to
/dev/null.
I plan to upload a fixed package today.
client/share/ltsp/update-kernels | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/client/share/ltsp/update-kernels b/client/share/ltsp/update-kernels
index 5e079be..1a75103 100755
--- a/client/share/ltsp/update-kernels
+++ b/client/share/ltsp/update-kernels
@@ -352,7 +352,8 @@ tftpboot \${kernel_addr_r} \${serverip}:${kernel_file} \\
EOF
mkimage -A arm -O Linux -T script -C none -a 0x0 -e 0x0 \
- -n 'LTSP boot script' -d $BOOT/boot.ltsp $BOOT/boot.scr
+ -n 'LTSP boot script' -d $BOOT/boot.ltsp $BOOT/boot.scr \
+ > /dev/null
# Copy .dtb files to boot dir.
dtb_dirs="/usr/lib/linux-image-${version}/"
live well,
vagrant
signature.asc
Description: PGP signature

