From: Danny Milosavljevic <dannym@scratchpost.org>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 25917@debbugs.gnu.org
Subject: bug#25917: [PATCH] services: Don't check filesystem even if #:check? if not #:needed-for-boot.
Date: Tue, 14 Mar 2017 20:18:09 +0100 [thread overview]
Message-ID: <20170314201809.33feb843@scratchpost.org> (raw)
In-Reply-To: <87mvcop7wj.fsf@gnu.org>
Hi Ludo,
On Tue, 14 Mar 2017 09:41:32 +0100
ludo@gnu.org (Ludovic Courtès) wrote:
> Danny Milosavljevic <dannym@scratchpost.org> skribis:
>
> >> One thing I don’t get is that, if the file system is not
> >> needed-for-boot?, then it doesn’t get a Shepherd service in the first
> >> place.
> >
> > But what is supposed to happen to filesystems where mount? but not needed-for-boot? if Shepherd doesn't mount it? Does some other part mount it ? Is it just put into fstab or something ?
>
> Yes, it’s just put in fstab. The use case for this is that then you can
> type just “mount /mnt/foo” and ‘mount’ looks it up in /etc/fstab and
> does the right thing.
>
> >> In your original message, you wrote that the problem is that “the initrd
> >> doesn't contain the fsck tool”, so it’s a problem in linux-initrd.scm,
> >> no?
> >
> > I don't know where we should fix it. If you want to reproduce it, I tested it with this config
> >
> > (file-systems (cons* ...
> > (file-system
> > (device "NO NAME")
> > (title 'label)
> > (mount-point "/mnt/tmp")
> > (type "vfat")
> > (needed-for-boot? #f)
> > (mount? #t)
> > (check? #t))
> > %base-file-systems))
> >
> > and an USB flash memory stick with name "NO NAME" (the default of the stick :) ).
> >
> > The effect is if not needed-for-boot? but check? , the boot breaks because it can't find fsck.vfat .
>
> Ooh, I think that’s another problem, then. :-)
>
> ‘file-system-shepherd-service’ is bogus: it only handles ext2:
>
> (setenv "PATH"
> (string-append
> #$e2fsprogs "/sbin:"
> "/run/current-system/profile/sbin:"
> $PATH)))
Oops...
> We should fix that to handle vfat, btrfs, etc., just like ‘base-initrd’
> does. In fact, we should extract the ‘helper-packages’ thing from
> there and factorize it between linux-initrd.scm and services/base.scm.
Sounds good!
However, the above has (needed-for-boot? #f) and Guix still tries to check / mount it. Why?
next prev parent reply other threads:[~2017-03-14 19:19 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-01 16:38 bug#25917: operating-system file-system with (check? #t) but (needed-for-boot #f) pauses boot until user interaction Danny Milosavljevic
2017-03-11 11:21 ` Ludovic Courtès
2017-03-12 16:56 ` bug#25917: [PATCH] services: Don't check filesystem even if #:check? if not #:needed-for-boot Danny Milosavljevic
2017-03-13 9:01 ` Ludovic Courtès
2017-03-13 19:55 ` Danny Milosavljevic
2017-03-14 8:41 ` Ludovic Courtès
2017-03-14 19:18 ` Danny Milosavljevic [this message]
2017-03-14 20:18 ` Ludovic Courtès
2017-03-12 16:59 ` bug#25917: [PATCH v2] services: If a filesystem is not marked as needed for boot, don't check it even if told to check it Danny Milosavljevic
2017-03-16 17:40 ` bug#25917: [PATCH] file-systems: Factorize file-system-packages Danny Milosavljevic
2017-03-17 9:03 ` Ludovic Courtès
2017-03-17 12:19 ` Danny Milosavljevic
2017-03-18 11:00 ` Ludovic Courtès
2017-03-18 11:04 ` Ludovic Courtès
2017-03-18 9:42 ` Danny Milosavljevic
2017-03-18 14:06 ` bug#25917: [PATCH v2] services: file-system-shepherd-service: Make it find the fsck programs Danny Milosavljevic
2017-03-19 15:44 ` Ludovic Courtès
2017-04-22 23:34 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170314201809.33feb843@scratchpost.org \
--to=dannym@scratchpost.org \
--cc=25917@debbugs.gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).