all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Daniel Drake <silophophe@me.com>
To: help-guix@gnu.org
Subject: Re: Problems adding multiple file systems (e.g., /home partition)
Date: Tue, 29 Nov 2016 10:10:09 -0500	[thread overview]
Message-ID: <30a19de5-7d2a-deb9-76b6-45749622903e@me.com> (raw)
In-Reply-To: <87bmwy8mv6.fsf@gnu.org>

Hi Ludo',

Thanks!  Your suggestion is what I had initially tried, and it would not 
boot.  But now it works: I can boot without the USB drive and reach the 
login prompt.  I must have had something else messed up.

In any event, thank you very much for your help!
- Daniel

On 11/29/2016 07:57 AM, Ludovic Courtès wrote:
> Hello!
>
> Daniel Drake <silophophe@gmail.com> skribis:
>
>> 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)) )
>
> This should be:
>
>   (dependencies (list vol-root))
>
>> I found a related issue in one of the IRC logs that modified the
>> dependencies argument like this:
>>   (dependencies (list vol-root))
>
> … which you already found.  :-)
>
>> 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
>
> Right.
>
> In fact, the root file system is always mounted before anything else, so
> the ‘dependencies’ field here is unneeded.
>
> (That case could be handled more gracefully though.)
>
> So in short, all you need is to write things like this:
>
>   (operating-system
>     ;; …
>     (file-systems (list (file-system (device "vol-root") …)
>                         (file-system (device "vol-home") …))))
>
> without any ‘dependencies’ field.
>
> HTH!
>
> Ludo’.
>

      parent reply	other threads:[~2016-11-29 15:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-28 18:23 Problems adding multiple file systems (e.g., /home partition) Daniel Drake
2016-11-29 12:57 ` Ludovic Courtès
2016-11-29 15:08   ` Daniel Drake
2016-11-29 15:10   ` Daniel Drake [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=30a19de5-7d2a-deb9-76b6-45749622903e@me.com \
    --to=silophophe@me.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.