Javi, Anton, I didn’t know about scripts in remotes/ .
Your script is great, Anton, it’s good template for doing any changes.
Finally I ended with
blockio.set(“logical_block_size”, str(512))
blockio.set(“physical_block_size”, str(4096))
because qemu (seabios) can’t boot from device with logical block size other than 512B:
https://www.coreboot.org/pipermail/seabios/2016-April/010596.html