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:10:09 -0500 Message-ID: <30a19de5-7d2a-deb9-76b6-45749622903e@me.com> 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]:58027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBk3D-00049z-R8 for help-guix@gnu.org; Tue, 29 Nov 2016 10:10:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBk38-00016P-Eh for help-guix@gnu.org; Tue, 29 Nov 2016 10:10:31 -0500 Received: from st11p00im-asmtp004.me.com ([17.172.80.98]:56915) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cBk38-00016D-AW for help-guix@gnu.org; Tue, 29 Nov 2016 10:10:26 -0500 Received: from process-dkim-sign-daemon.st11p00im-asmtp004.me.com by st11p00im-asmtp004.me.com (Oracle Communications Messaging Server 7.0.5.38.0 64bit (built Feb 26 2016)) id <0OHE00O00SG1AH00@st11p00im-asmtp004.me.com> for help-guix@gnu.org; Tue, 29 Nov 2016 15:10:13 +0000 (GMT) Received: from [10.4.4.138] (195.99-88-23.rdns.scalabledns.com [23.88.99.195]) by st11p00im-asmtp004.me.com (Oracle Communications Messaging Server 7.0.5.38.0 64bit (built Feb 26 2016)) with ESMTPSA id <0OHE00ID8SSXP920@st11p00im-asmtp004.me.com> for help-guix@gnu.org; Tue, 29 Nov 2016 15:10:12 +0000 (GMT) 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: help-guix@gnu.org 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. >