From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Drake Subject: Re: Problems adding multiple file systems (e.g., /home partition) Date: Tue, 29 Nov 2016 10:08:53 -0500 Message-ID: References: <87bmwy8mv6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBkM6-0001TN-1D for help-guix@gnu.org; Tue, 29 Nov 2016 10:30:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBkM2-00082h-SC for help-guix@gnu.org; Tue, 29 Nov 2016 10:30:02 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35354) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBkM2-00082d-P3 for help-guix@gnu.org; Tue, 29 Nov 2016 10:29:58 -0500 Received: from pluto.bordeaux.inria.fr ([193.50.110.57]:36128 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cBkM2-0007KN-5e for help-guix@gnu.org; Tue, 29 Nov 2016 10:29:58 -0500 Resent-To: help-guix@gnu.org Resent-Message-ID: <87d1he2tjh.fsf@gnu.org> In-reply-to: <87bmwy8mv6.fsf@gnu.org> 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: =?UTF-8?Q?Ludovic_Court=c3=a8s?= Hi Ludo', Thanks! Your suggestion is what I had initially tried, and it would = not=20 boot. But now it works: I can boot without the USB drive and reach t= he=20 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=C3=A8s wrote: > Hello! > > Daniel Drake skribis: > >> I've noted the dependencies member of the file-system object: "Th= is >> 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 'labe= l) >> (mount-point "/") (type "ext4"))) >> >> Then I add the root file system to the file-systems list, along wi= th >> 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 els= e, 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. >