convert bootable freebsd iso to bootable flash image

Tim Kientzle kientzle at freebsd.org
Sun Nov 16 09:37:02 PST 2008


Luigi Rizzo wrote:
> Just in case people have a similar need, or can point me to better
> code to do the same job:
> 
> i needed to convert a bootable FreeBSD iso image into a bootable
> flash image, and have come up with the following code (derived
> from PicoBSD). The nice part is that this is all done without
> requiring root permissions -- the iso extraction is done with
> bsdtar, the file system is created using makefs, and the
> other patching is done with bsdlabel and dd.

It doesn't look like this would preserve file ownership,
which can be important.

It might be interesting to use libarchive within makefs
so that makefs can generate the filesystem image directly
from tar or iso archives and preserve all of the ownership,
permissions, etc.

Tim


More information about the freebsd-hackers mailing list