For both integration tests of my #ZMODEM crate and also for keyutils Gitlab #CI I’ve been looking for solution to implement transparent serial file transfer.
#QEMU allows trivially to convert serial port to UNIX domain socket but it is not natively supported by sz
but with a little bit of socat
magic it can be apparently converted quite easily again to PTY:
socat -d UNIX-CONNECT:output/images/serial.sock PTY,raw,echo=0,link=output/images/ptyC0
This allows to drop SSH support completely from BuildRoot config, which makes it much more appealing for automated CI.