Become root via 'sudo -sE', preserving your environment (I habitually do this to preserve SSH agent forwarding).
Manually 'apt-get update', which happens to involve a kernel update
..then the update-initramfs script will run as a postinst hook. update-initramfs really does not like libstderred.so. Output goes red halfway, and the generated initrd file will contain binary files with ANSI color codes embedded. After a reboot the kernel sees all this and panics.
There's probably something I could add to STDERRED_BLACKLIST but I can't figure out what (I tried update-initramfs, mkinitramfs and bash without success).
Not sure if this is libstderred.so's fault, but just FYI: use of libstderred.so can result in an unbootable computer:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1729836
Specifically, if you:
..then the
update-initramfs
script will run as a postinst hook.update-initramfs
really does not like libstderred.so. Output goes red halfway, and the generated initrd file will contain binary files with ANSI color codes embedded. After a reboot the kernel sees all this and panics.There's probably something I could add to STDERRED_BLACKLIST but I can't figure out what (I tried
update-initramfs
,mkinitramfs
andbash
without success).LD_PRELOAD is such a glorious footgun :)