all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Daniel Drake <silophophe@gmail.com>
To: help-guix@gnu.org
Subject: Problems adding multiple file systems (e.g., /home partition)
Date: Mon, 28 Nov 2016 13:23:27 -0500	[thread overview]
Message-ID: <ae627b95-55c1-5731-4458-3e93ef04a75d@mac.com> (raw)

Hi all.

I'm transitioning from arch to guixsd.  I've built off of the 
bare-bones.scm example, but I'm having trouble adding a second file 
system (my home partition).  Without a dependency argument to ensure 
that root gets mounted prior to home, the system fails to boot to a prompt.

I've noted the dependencies member of the file-system object:  "This is 
a list of <file-system> objects representing file systems that must be 
mounted before (and unmounted after) this one."

In the preamble, I define the root file-system:

   (define vol-root (file-system  (device "vol-root")  (title 'label) 
(mount-point "/")  (type "ext4")))

Then I add the root file system to the file-systems list, along with the 
file-system for the home directory:

   (operating-system
     ...
     (file-systems
       (cons*
         vol-root
         (file-system  (device "vol-home")  (title 'label)  (mount-point 
"/home")  (type "ext4")  (dependencies '(vol-root)) )
         %base-file-systems))
     ...

When I try to instantiate (via guix system init /mnt/etc/config.scm 
/mnt), I get a multi-line error that states:
   gnu/services/base.scm:255:2: In procedure 
dependency->shepherd-service-name:
   gnu/services/base.scm:225:2: Throw to key 'match-error' with args 
`("match" "no matching pattern" vol-root)'.


I found a related issue in one of the IRC logs that modified the 
dependencies argument like this:
   (dependencies (list vol-root))
within the file-system object for the home directory.
In that instance, the error seems almost resolvable:
guix system: error: `file-system-/home' requires 'file-system-/', which 
is not provided by any service

In this case, it seems like the service that mounts root has not been 
created at the point that the home directory service needs it.

If anyone can shed some light into what actually needs to be placed in 
the dependencies list, that would be quite helpful.  I'm new to guile, 
but I've done some hacking in emacs-lisp.

Thank you.
- Daniel

             reply	other threads:[~2016-11-28 18:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-28 18:23 Daniel Drake [this message]
2016-11-29 12:57 ` Problems adding multiple file systems (e.g., /home partition) Ludovic Courtès
2016-11-29 15:08   ` Daniel Drake
2016-11-29 15:10   ` Daniel Drake

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=ae627b95-55c1-5731-4458-3e93ef04a75d@mac.com \
    --to=silophophe@gmail.com \
    --cc=help-guix@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.