From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#25917: [PATCH] services: Don't check filesystem even if #:check? if not #:needed-for-boot. Date: Mon, 13 Mar 2017 10:01:32 +0100 Message-ID: <878to9bleb.fsf@gnu.org> References: <87wpbw83ev.fsf@gnu.org> <20170312165604.1273-1-dannym@scratchpost.org> 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]:58432) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cnLrj-0004Q6-G0 for bug-guix@gnu.org; Mon, 13 Mar 2017 05:02:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cnLre-0007Dj-I7 for bug-guix@gnu.org; Mon, 13 Mar 2017 05:02:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:54996) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cnLre-0007Df-FJ for bug-guix@gnu.org; Mon, 13 Mar 2017 05:02:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cnLre-0001IE-7E for bug-guix@gnu.org; Mon, 13 Mar 2017 05:02:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20170312165604.1273-1-dannym@scratchpost.org> (Danny Milosavljevic's message of "Sun, 12 Mar 2017 17:56:04 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Danny Milosavljevic Cc: 25917@debbugs.gnu.org Danny Milosavljevic skribis: > * gnu/services/base.scm (file-system-shepherd-service): If > not #:needed-for-boot, don't check filesystem even if #:check? . > --- > gnu/services/base.scm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/gnu/services/base.scm b/gnu/services/base.scm > index 5298a11f6..2628b718f 100644 > --- a/gnu/services/base.scm > +++ b/gnu/services/base.scm > @@ -274,6 +274,7 @@ FILE-SYSTEM." > (options (file-system-options file-system)) > (check? (file-system-check? file-system)) > (create? (file-system-create-mount-point? file-system)) > + (needed-for-boot? (file-system-needed-for-boot? file-system)) > (dependencies (file-system-dependencies file-system))) > (and (file-system-mount? file-system) > (with-imported-modules '((gnu build file-systems) > @@ -300,7 +301,7 @@ FILE-SYSTEM." > (lambda () > (mount-file-system > `(#$device #$title #$target #$type #$flags > - #$options #$check?) > + #$options #$(and check? needed-= for-boot?)) > #:root "/")) > (lambda () > (setenv "PATH" $PATH))) One thing I don=E2=80=99t get is that, if the file system is not needed-for-boot?, then it doesn=E2=80=99t get a Shepherd service in the fir= st place. In your original message, you wrote that the problem is that =E2=80=9Cthe i= nitrd doesn't contain the fsck tool=E2=80=9D, so it=E2=80=99s a problem in linux-= initrd.scm, no? What am I missing? Ludo=E2=80=99.