all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chris Marusich <cmmarusich@gmail.com>
To: myglc2@gmail.com
Cc: guix-devel@gnu.org
Subject: Re: guix package: error: build failed: opening lock file?
Date: Tue, 08 May 2018 23:10:57 -0700	[thread overview]
Message-ID: <877eod1hqm.fsf@gmail.com> (raw)
In-Reply-To: 87bmewc15q.fsf@gmail.com

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

Hi,

This is follow-up to a help-guix@gnu.org thread in which George asked if
it is expected that "guix system vm" mounts the store read-only in the
VM, and I replied explaining that it is expected:

https://lists.gnu.org/archive/html/help-guix/2018-04/msg00049.html

I dug a little further and discovered behavior that seems undesirable to
me.  If someone can confirm my understanding, I would be happy to try
drafting draft a patch to fix the problem.

Chris Marusich <cmmarusich@gmail.com> writes:

> Currently, if you need a read-write store in a VM, the easiest solution
> is probably to use "guix system vm-image" or "guix system disk-image".

Curiously, if you invoke "guix system vm --full-boot", you will get a VM
that sees a read-write store.  In virtualized-operating-system, it says:

    ;; XXX: When FULL-BOOT? is true, do not add a 9p mount for /gnu/store
    ;; since that would lead the bootloader config to look for the kernel and
    ;; initrd in it.
    (file-systems (if full-boot?
                      virtual-file-systems
                      (cons
                       (file-system
                         (inherit (mapping->file-system %store-mapping))
                         (needed-for-boot? #t))
                       virtual-file-systems)))))

I don't understand this comment.  I don't understand why we only map the
store into the VM when full-boot? is #f.  When --full-boot is specified
on the command line (i.e., full-boot? is not #f), not only do we NOT map
the store into the VM, but we also copy the VM's dependencies into the
VM's disk image, so the disk image will contain a subset of the host's
store.  In fact, because we copy the files over, the size of the disk
image produced by "guix system vm --full-boot" is about the same as that
produced by "guix system vm-image".  I don't understand the point of
this; it seems to me like we could always unconditionally map the store
into the VM (without copying the dependencies required by the bootloader
config), regardless of whether --full-boot was specified, and the
bootloader would still successfully find its kernel and initrd.

Am I wrong?  Does anyone understand why we map the store into the VM if
and only if full-boot? is #f?

-- 
Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

      parent reply	other threads:[~2018-05-09  6:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-05 19:43 guix package: error: build failed: opening lock file? myglc2
2018-04-06  6:13 ` Chris Marusich
2018-04-06  8:35   ` Ludovic Courtès
2018-04-06 16:24     ` myglc2
2018-05-09  6:10   ` Chris Marusich [this message]

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=877eod1hqm.fsf@gmail.com \
    --to=cmmarusich@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=myglc2@gmail.com \
    /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.