From: Daniel Drake <silophophe@me.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Subject: Re: Problems adding multiple file systems (e.g., /home partition)
Date: Tue, 29 Nov 2016 10:08:53 -0500 [thread overview]
Message-ID: <b2d3de1f-5088-703b-765c-9448e125a7e7@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’.
>
next prev parent reply other threads:[~2016-11-29 15:30 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 [this message]
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
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=b2d3de1f-5088-703b-765c-9448e125a7e7@me.com \
--to=silophophe@me.com \
--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).