Hello David,

Virtio-fs sounds like a natural fit for your situation. Please see this wiki 
page for details: https://github.com/cloudius-systems/osv/wiki/virtio-fs

In short, virtio-fs lets you mount a host directory on the guest. The OSv 
implementation is read-only but that shouldn't be a problem since you are using 
rofs currently.

Feel free to check it out and of course come back if you run into any issues or 
have any feedback!

Fotis
________________________________
From: osv-dev@googlegroups.com <osv-dev@googlegroups.com> on behalf of David 
Smith <d7878...@gmail.com>
Sent: Tuesday, April 6, 2021 4:08:31 PM
To: OSv Development <osv-dev@googlegroups.com>
Subject: [osv-dev] Replacing files in built filesystem image

I'm reviewing the OSv documentation and scripts to see if I can find an 
existing solution which would allow the addition/replacement/deletion of files 
in an already built filesystem image, without needing the entire OSv build 
environment and performing a rebuild. In my case, the filesystem type used to 
build the .raw image file is ROFS (selected primarily to reduce startup time).

I can see the script being used to generate this filesystem image 
(gen-rofs-img.py), but I haven't yet seen any way in which I can unpack/mount 
an existing filesystem image, make changes to the content and re-pack/unmount 
the image.

Is this a facility that is already available in some form?
If not, any suggestions on the best approach would be welcome.

--
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
osv-dev+unsubscr...@googlegroups.com<mailto:osv-dev+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osv-dev/05782ae7-44f0-44d2-a249-aeafdaeef2acn%40googlegroups.com<https://groups.google.com/d/msgid/osv-dev/05782ae7-44f0-44d2-a249-aeafdaeef2acn%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osv-dev/VI1PR03MB37735BAD178E2F15A5871718A6769%40VI1PR03MB3773.eurprd03.prod.outlook.com.

Reply via email to