Plan 9 from Bell Labs’s /usr/web/sources/contrib/stallion/u-boot/arndale/mkimage
#!/bin/rc -e # mkimage - prepare image for booting(8) rfork en ramfs image=`{basename `{pwd}}^.img dd -if /dev/zero -of /tmp/$image -bs 1024k -count 1 >/dev/null >[2=1] disk/partfs /tmp/$image mkboot /dev/sdXX gzip -c /tmp/$image >$image.gz exit ''