unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: 7e9wc56emjakcm@s.rendaw.me
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: help-guix@gnu.org
Subject: Re: Remounting tmpfs
Date: Wed, 10 Apr 2019 00:24:32 +0900	[thread overview]
Message-ID: <d734939e-d39f-14c3-5bac-b62f79728728@fastmail.com> (raw)
In-Reply-To: <877ec3fcnt.fsf@gnu.org>


On 4/9/19 11:58 PM, Ludovic Courtès wrote:
> Hello,
>
> 7e9wc56emjakcm@s.rendaw.me skribis:
>
>> On a system I'm porting to guix I have 2GB tmpfs with subdirectories
>> like /tmpfs/etc that I remount to /etc with an overlay filesystem.
>>
>> The current way I do this in systemd is making a service dependency
>> between the /tmpfs and /etc mounts that mkdirs /tmpfs/etc and
>> /tmpfs/etc_work, but AFAICT filesystem definitions in guix can only have
>> filesystem dependencies.
>>
>> Are there any other ways I can do this without copying/pasting/modifying
>> gobs of core guix code into my system definition?  Like somehow
>> appending (mkdir /tmpfs/etc) onto the tmpfs filesystem service start
>> procedure or something.
> In Guix /etc is mostly populated by “activation programs”, which are
> generated from your config.  So I’m not sure what you describe would
> make much sense.

So if /etc can be read-only and boot I'm probably fine... my experience
with other distros was that some other processes needed to write to it. 
Ex: modifying resolv.conf.

> Now, you could try to add a file system declaration that mounts /etc,
> with (needed-for-boot? #t).

My goal is to have a read-only / mount with the ability for programs to
make temporary modifications for operational purposes when necessary, in
limited scopes (like /etc).  Can you elaborate on what you're suggesting
here?  Mounting something other than the overlayfs on /etc would hide
the system config files.  I might be able to use another mount to create
a pseudo- /tmpfs/etc_work subdirectory but it sounds kind of wormy and
overlayfs requires the upper dir and workdir to be the same filesystem
which I think precludes doing any mounting for those subdirectories.

Thanks for the suggestions!

  reply	other threads:[~2019-04-09 15:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-07 19:33 Remounting tmpfs 7e9wc56emjakcm
2019-04-09 14:58 ` Ludovic Courtès
2019-04-09 15:24   ` 7e9wc56emjakcm [this message]
2019-04-16 19:11     ` rendaw
2019-04-17 20:31     ` Ludovic Courtès
2019-04-17 20:50       ` rendaw

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d734939e-d39f-14c3-5bac-b62f79728728@fastmail.com \
    --to=7e9wc56emjakcm@s.rendaw.me \
    --cc=help-guix@gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).