From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id CFXvId2xCWVtVwAA9RJhRA:P1 (envelope-from ) for ; Tue, 19 Sep 2023 16:36:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CFXvId2xCWVtVwAA9RJhRA (envelope-from ) for ; Tue, 19 Sep 2023 16:36:13 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3BA0D406F7 for ; Tue, 19 Sep 2023 16:36:13 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695134173; a=rsa-sha256; cv=none; b=quO2Q2WzNa8PH/CrnMTK9eXX2l5pbtcfGmSE5pQJ/SdSAtzZAAGhg/V+ywqKLRCU6qCBdY Qc5C9NTN5v/kTt+2f0oEbK8t1WKONB3NbSg9lgxtC3pYKo2lQ5uepYRQKATgZbFRVL9wix zlOusfFfG2GEr4eOlCDfdTk7Uwy0ayUsCAv/A8rfOTxVsuAMCrlBLbPqxJyhbGwo+Yfw7+ GEe1JvsKTekVzYaxkCEtYTt4u+Mf60W4JZm4dEqaHTN2S/s8JtE+5+sgJ4LmOxDeGMkTsT NMLMPgHZeXGFCeDQXMtEdFQmyE1q07R1XDORIsjPTIQpwI0rKvEahnIxIWgVnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695134173; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post; bh=q6+E05Z9rDdFETC/TsAKHpD7sr2sJVD9KK24ypn6j4U=; b=DhpHCAsq53an2BThfDNIg4ty+evI6XF/d8yVvPUtAvyQjL4ZkmcPpN9DcdG4rHAd/5Uo1p 4uKmFXGOzf6LnIUkdmDG4D54WrrzUVsyEIGOgqnxXMs+ibqBsMY4GU6n+QvvavgOBJHEeK F1/enNnVH9qwVcK/kDlUGS0E6o+YksLZ1x+VsquGrmBMo+OVSFom29dn3eBEW8Io9xSK6Q Ekup6e2xIhyOU96Txql8Z/1dygCTE7vDI2hwvFYKLW9tn8TBGltE4PecTP/LIolN1RX88b 4sRsgdla2LZrS/eD1mAq7z1tvyrrYSKk+/ggrr45kNqSGhIUraYtVjtsiW8UqA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qibpU-0005lj-PO; Tue, 19 Sep 2023 10:35:56 -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 ) id 1qibpS-0005lI-H3 for bug-guix@gnu.org; Tue, 19 Sep 2023 10:35:54 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qibpS-0007BV-6X for bug-guix@gnu.org; Tue, 19 Sep 2023 10:35:54 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qibpa-0000K0-Nm for bug-guix@gnu.org; Tue, 19 Sep 2023 10:36:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#66102: guix system delete-generations ignores grub-configuration terminal-ouputs field setting Resent-From: Maze Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 19 Sep 2023 14:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66102 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 66102@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16951341411198 (code B ref -1); Tue, 19 Sep 2023 14:36:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Sep 2023 14:35:41 +0000 Received: from localhost ([127.0.0.1]:57624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qibpF-0000JG-30 for submit@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 ) id 1qibp9-0000It-QF for submit@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 ) id 1qibos-0005dl-R5 for bug-guix@gnu.org; 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 ) id 1qiboo-0006tS-L7 for bug-guix@gnu.org; Tue, 19 Sep 2023 10:35:17 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1qiboc-0006U7-9T for bug-guix@gnu.org; Tue, 19 Sep 2023 16:35:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ From: Maze Date: Tue, 19 Sep 2023 22:12:52 +0800 Message-ID: <87cyyei74r.fsf@pkbd.org> 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@m.gmane-mx.org; 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.44 X-Spam-Score: -5.44 X-Migadu-Queue-Id: 3BA0D406F7 X-Migadu-Scanner: mx2.migadu.com X-TUID: ieFO45eKszuy 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.