(the mailing list didnt accept this, retrying)

Ok I spent some time looking at ways of building config files into
images more easily, ideally without bringing in too much file system
handling eg if you just want a few files to serve on a web server or
some network config like DNS setup.

So I have made a simple tar extraction library (largely by deleting
code) that is easy to compile and link.
https://github.com/justincormack/libuntar It is less than 10k
compiled, still needs some more cleanup but the simple cases work
(decompression needs a bit of tidying). It supports GNU or BSD
tarfiles, and supports device nodes, soft and hard links etc.

The mem/ directory has an example - add an image.tar file and it will
make a standalone executable that when run will untar the tarfile that
is linked into its binary. This runs on linux/netbsd7/rumprun-posix
fine and will populate the root fs, and should be trivial to add into
a Xen/baremetal image, just remove main() and call extract() after
rump_init().

Justin

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
rumpkernel-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rumpkernel-users

Reply via email to