#!/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 100 >/dev/null >[2=1]
disk/partfs /tmp/$image
mkboot /dev/sdXX
gzip -c /tmp/$image >$image.gz
exit ''
|