Reimplemented boot/create-image.bash in standard Bourne Shell