From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH 3/6] file-systems: Suppress fsck status completion bar. Date: Mon, 07 Nov 2016 09:59:12 +0100 Message-ID: <8760nzy8bj.fsf@gnu.org> References: <20161105125511.29383-1-mbakke@fastmail.com> <20161105125511.29383-4-mbakke@fastmail.com> <87r36owaap.fsf@gnu.org> <87y40w88g9.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> 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]:36755) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3flv-0000lT-Ge for guix-devel@gnu.org; Mon, 07 Nov 2016 03:59:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c3flq-00071w-Tf for guix-devel@gnu.org; Mon, 07 Nov 2016 03:59:19 -0500 In-Reply-To: <87y40w88g9.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> (Marius Bakke's message of "Mon, 07 Nov 2016 00:00:54 +0000") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Marius Bakke Cc: guix-devel@gnu.org Hey! Marius Bakke skribis: > Ludovic Court=C3=A8s writes: > >> Marius Bakke skribis: >> >>> * gnu/build/file-systems.scm (check-file-system): Drop "-C" argument >>> from fsck for compatibility with other fscks. >> >> Oh so fsck.ext2 would no longer show any kind of progress report? >> That=E2=80=99s annoying. >> >> Could we address it differently? Not sure how, though. > > We would have to provide a custom check-file-system procedure for each > detected file-system. That might be needed in the long run anyway, but I > think this is a worthwhile compromise for now. What about adding a one-argument procedure as the =E2=80=98check-procedure= =E2=80=99 field of , with a sane default, like: (define (default-file-system-check file-system) #~(system* (string-append "fsck." #$(file-system-type file-system)) =E2=80=A6)) ? In fact, that would also remove the need for the special case to add dosfstools to the initrd because we could simply write: (define (fat-file-system-check file-system) #~(system* #$(file-append vfatfsck/static "/bin/fsck.vfat") =E2=80=A6)) and that would automatically bring vfatfsck/static to the initrd when it=E2=80=99s needed, and only then. WDYT? (Same design pattern as =E2=80=98open=E2=80=99 in .) > I will push the okayed parts of this series tomorrow evening (with > fixes), unless there are further comments. Cool, thanks! Ludo=E2=80=99.