[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems adding multiple file systems (e.g., /home partition)

From: Daniel Drake
Subject: Re: Problems adding multiple file systems (e.g., /home partition)
Date: Tue, 29 Nov 2016 10:08:53 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.0

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:

Daniel Drake <address@hidden> 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:

        (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


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:

    ;; …
    (file-systems (list (file-system (device "vol-root") …)
                        (file-system (device "vol-home") …))))

without any ‘dependencies’ field.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]