Because the customization is just writing some text into a file,
my approach is to put in the UFS image a file with a recognizable
start and end markers, and then dd into the image the stuff I need.
I was wondering if i could avoid shipping both images, and instead
use some trick to extract the tree from the UFS image and then
use mkisofs on the linux side to build the ISO.
I know that bsdtar can read ISO images, but I don't think it does
the same on UFS. Yet, if the boot2 code is able to squeeze the
required pieces on 8k or so, maybe there is some simple (and portable)
tool that can do the file extraction job ?
cheers
luigi
_______________________________________________
freebsd...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-curre...@freebsd.org"
If I understand you correctly, you may try mounting the images in Linux,
with suitably compiled kernel.
yes but that requires root privileges.
I try to avoid that even in FreeBSD (ni the picobsd script)
by using 'makefs'.
dump and restore?
You could try ffsrecov/ffs2recov, although those tools aren't really
suited to this task.
--
Frank Mayhar fr...@exit.com http://www.exit.com/
Exit Consulting http://www.gpsclock.com/
http://www.exit.com/blog/frank/
http://www.zazzle.com/fmayhar*
dump reads the UFS filesystem directly does it not? piped into
restore, it puts the files onto a mounted filesystem.
That was my first thought too!
> > the UFS image is just a file produced on FreeBSD - i'd rather not
> > require root privs to mount the image in order to manipulate it.
> >
> > cheers
> > luigi
>
> dump reads the UFS filesystem directly does it not? piped into
> restore, it puts the files onto a mounted filesystem.
You'd have to modify dump a bit since it insists on a special
device to dump from (and make dump+restore work on linux).
Or he can use vbackup & vftp from plan9ports. vbackup can
read a variety of filesystems and archive them to a venti
server. vftp can be used to retrieve files from venti. None
of the three require root privs and already work on linux.
http://swtch.com/plan9port/