From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Problems adding multiple file systems (e.g., /home partition) Date: Tue, 29 Nov 2016 13:57:33 +0100 Message-ID: <87bmwy8mv6.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBhyd-0007CS-22 for help-guix@gnu.org; Tue, 29 Nov 2016 07:57:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBhya-0004kX-0S for help-guix@gnu.org; Tue, 29 Nov 2016 07:57:39 -0500 In-Reply-To: (Daniel Drake's message of "Mon, 28 Nov 2016 13:23:27 -0500") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Daniel Drake Cc: help-guix@gnu.org Hello! Daniel Drake skribis: > I've noted the dependencies member of the file-system object: "This > is a list of 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)) =E2=80=A6 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 =E2=80=98dependencies=E2=80=99 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 ;; =E2=80=A6 (file-systems (list (file-system (device "vol-root") =E2=80=A6) (file-system (device "vol-home") =E2=80=A6)))) without any =E2=80=98dependencies=E2=80=99 field. HTH! Ludo=E2=80=99.