all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Hartmut Goebel <h.goebel@crazy-compilers.com>
To: guix-devel <guix-devel@gnu.org>
Subject: Curious unionfs-ro-mount for /gnu/store in installation-image
Date: Sun, 29 Oct 2017 18:18:08 +0100	[thread overview]
Message-ID: <de29f139-af5c-a367-1aa1-c0365c2a5466@crazy-compilers.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1654 bytes --]

Hello,

immediately after booting the installation image (build according to [1]
and run according to [2]), the "mount" command spits out *two* unionfs
mounted points:

root@gnu ~# mount
unionfs on / type fuse.unionfs (rw,…)
unionfs on /gnu/store type fuse.unionfs (ro,…)

The first one ("/") is easy to explain: It is created by
gnu/build/linux-boot.scm (mount-root-file-system) if #:volatile-root is
true.

But I'm curious, where the second one comes from. I've been searching
this for two or three hours now and did not find, where this is defined.

- unionfs is used twice only in the whole code:
    1) In gnu/build/linux-boot.scm (mount-root-files-ystem) to make a
unionfs root – this is our first case
    2) in gnu/system/install.scm (make-cow-store) – which is not started
yet.

- gnu/system/install.scm defines the system to be put into the
installation image. Thuns I thought it may be a file-system defined in
install.scm. But related to the store there is only %immutable-store,
which does not use unionfs a ro-bind-mount, not a unionfs.

- I tried to find some hint in the disk-image, but did not. I found
"shepherd-file-system--gnu-store.scm", which implements %immutable-store".

Any ideas where this second unionfs-mount comes from?

[1]
https://www.gnu.org/software/guix/manual/guix.html#Building-the-Installation-Image
[2]
https://www.gnu.org/software/guix/manual/guix.html#Installing-GuixSD-in-a-VM

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |


[-- Attachment #2: 0xBF773B65.asc --]
[-- Type: application/pgp-keys, Size: 14855 bytes --]

             reply	other threads:[~2017-10-29 17:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-29 17:18 Hartmut Goebel [this message]
2017-10-29 17:30 ` Curious unionfs-ro-mount for /gnu/store in installation-image Tobias Geerinckx-Rice
2017-10-29 17:45   ` Hartmut Goebel
2017-10-31  1:56 ` Chris Marusich

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

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

  git send-email \
    --in-reply-to=de29f139-af5c-a367-1aa1-c0365c2a5466@crazy-compilers.com \
    --to=h.goebel@crazy-compilers.com \
    --cc=guix-devel@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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.