From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: hiding =?utf-8?Q?=E2=80=9Cguix_system=E2=80=9D?= messages Date: Wed, 22 Aug 2018 16:23:40 +0200 Message-ID: <87zhxefpjn.fsf@gnu.org> References: <87va83sfuz.fsf@elephly.net> 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]:50712) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fsU2x-0000KB-6P for guix-devel@gnu.org; Wed, 22 Aug 2018 10:23:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fsU2w-0004gR-Gv for guix-devel@gnu.org; Wed, 22 Aug 2018 10:23:43 -0400 In-Reply-To: <87va83sfuz.fsf@elephly.net> (Ricardo Wurmus's message of "Tue, 21 Aug 2018 21:02:12 +0200") 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: Ricardo Wurmus Cc: guix-devel@gnu.org Hello! Ricardo Wurmus skribis: > when installing / building / reconfiguring a system, Guix spawns a few > tools that produce output that might be confusing or misleading. One > example is the output of the GRUB installation, which says things like > =E2=80=9CInstallation finished. No error reported.=E2=80=9D or that it=E2= =80=99s installing > something for a 386 system. > > I think we should hide (redirect to a log file) or at least prefix > messages that are produced by tools that Guix spawns. We could then > deliberately print messages that indicate the =E2=80=9Cphases=E2=80=9D of= installing the > system, such as =E2=80=9CInstalling GRUB=E2=80=A6=E2=80=9D, =E2=80=9CCrea= ting user accounts=E2=80=A6=E2=80=9D, etc. Prefixing sounds like a good idea; hiding might end up hiding too much, so I=E2=80=99m more wary about that. If we do prefixing, probably we just need a variant of =E2=80=98invoke=E2= =80=99 that runs the program in a pipe, reads its output, and prints the prefixed lines. Thoughts? Ludo=E2=80=99.