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
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to