GNU bug report logs - #66102
guix system delete-generations ignores grub-configuration terminal-ouputs field setting

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Severity: important; Reported by: Maze <maze@HIDDEN>; dated Tue, 19 Sep 2023 14:36:02 UTC; Maintainer for guix is bug-guix@HIDDEN.
Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 19 Sep 2023 14:35:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 19 10:35:41 2023
Received: from localhost ([127.0.0.1]:57624 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qibpF-0000JG-30
	for submit <at> debbugs.gnu.org; Tue, 19 Sep 2023 10:35:41 -0400
Received: from lists.gnu.org ([2001:470:142::17]:45424)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gcggb-bug-guix@HIDDEN>) id 1qibp9-0000It-QF
 for submit <at> debbugs.gnu.org; Tue, 19 Sep 2023 10:35:39 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <gcggb-bug-guix@HIDDEN>)
 id 1qibos-0005dl-R5
 for bug-guix@HIDDEN; Tue, 19 Sep 2023 10:35:18 -0400
Received: from ciao.gmane.io ([116.202.254.214])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <gcggb-bug-guix@HIDDEN>)
 id 1qiboo-0006tS-L7
 for bug-guix@HIDDEN; Tue, 19 Sep 2023 10:35:17 -0400
Received: from list by ciao.gmane.io with local (Exim 4.92)
 (envelope-from <gcggb-bug-guix@HIDDEN>) id 1qiboc-0006U7-9T
 for bug-guix@HIDDEN; Tue, 19 Sep 2023 16:35:02 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: bug-guix@HIDDEN
From: Maze <maze@HIDDEN>
Subject: guix system delete-generations ignores grub-configuration
 terminal-ouputs field setting
Date: Tue, 19 Sep 2023 22:12:52 +0800
Message-ID: <87cyyei74r.fsf@HIDDEN>
Mime-Version: 1.0
Content-Type: text/plain
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:Vkl6YwdEtaCcK2KHfSnbzoBNfjg=
Received-SPF: pass client-ip=116.202.254.214;
 envelope-from=gcggb-bug-guix@HIDDEN; helo=ciao.gmane.io
X-Spam_score_int: -16
X-Spam_score: -1.7
X-Spam_bar: -
X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9,
 HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

I deleted old generations of my system today and I think I noticed an
incorrect behavior. In most cases this would be just a minor temporary
badness, maybe (just maybe) in the case of some exotic or ancient
hardware, a variant of the same issue could results in an unbootable
system.

At the end of a 'guix system delete-generations' command, the bootloader
setup is updated for the current system. However, in my case, the
setting defined by the terminal-outputs field of the
bootloader-configuration record of my system configuration is not taken
into account by this step. I use the console output of GRUB.

In the event it matters, I should mention that I have the filesystem on
an encrypted partition: I input the passphrase once at GRUB rescue
before the GRUB menu, then a second time when I'm prompted by the initrd.

How to reproduce, then workaround:

1. Reconfigure an operating system with something like:
(bootloader-configuration ...
                          (terminal-outputs '(console))
                          ...)

2. Reboot, you should see a non-graphical GRUB menu with a blue
background.

3. Delete some generations, for example by running:
guix system delete-generations 1..N
(with N some integer)

4. Reboot immediately without reconfiguring your system. If you see a
guixified graphical background for the GRUB menu, then this is the bug,
since it's not what's configured for the current system. This ought to
be the gfxterm output of GRUB.

5. Reconfigure your system:
guix system reconfigure /path/to/system.scm

6. Reboot, and check that you see a non-graphical blue background GRUB
menu again. Issue is worked around, presumably until the next time
generations are deleted.
                        





Acknowledgement sent to Maze <maze@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#66102; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 28 Oct 2023 10:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.