The /tmp should be writable in rofs images by virtue of the last line in fstab_rofs that sets /tmp mount point as ramfs (see https://github.com/cloudius-systems/osv/blob/master/static/etc/fstab_rofs).
On Thursday, February 7, 2019 at 5:43:58 AM UTC-5, Nadav Har'El wrote: > > On Thu, Feb 7, 2019 at 12:15 PM Brian Ledbetter <[email protected] > <javascript:>> wrote: > >> Understood, I've been really impressed with his work on rofs so far. It >> makes perfect sense for an application like mine. >> >> I modified usr_rofs.manifest.skel to include: >> >> /etc/resolv.conf: ->/tmp/resolv.conf >> >> ...and built with fs=rofs, but it fails writing it. So I'm definitely >> doing something wrong :) >> > > Or I was wrong, and we don't mount a writable /tmp? Looking at > mount_rofs_rootfs(), I don't see us mounting /tmp. But I seemed to remember > that we do, because we had tests relying on a writeable /tmp, didn't we? > Waldek, if we don't have a writeable /tmp, can we? Should we? > > If we don't want to have a writeable directory (/tmp or otherwise) we can > also do a kernel-generates "/proc/resolv.conf" (see how > usr_rofs.manifest.skel does /etc/mnttab as a link to /proc/mounts). That is > something we could do, but I thought was an overkill in this case. > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
