From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Xavier Montillet" Subject: bug#36865: Guix gc breaks grub Date: Tue, 30 Jul 2019 22:03:54 +0000 Message-ID: <37594eea-2366-4135-bbd5-b6d582cb6b01@www.fastmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=2b6a8b4f11664a8298b60661407910fc Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:41687) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsblx-0002gU-U3 for bug-guix@gnu.org; Tue, 30 Jul 2019 19:43:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hsblt-0006FU-VH for bug-guix@gnu.org; Tue, 30 Jul 2019 19:43:12 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42557) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hsbln-0006Dc-06 for bug-guix@gnu.org; Tue, 30 Jul 2019 19:43:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hsblm-0001lk-S8 for bug-guix@gnu.org; Tue, 30 Jul 2019 19:43:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:57327) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsaDx-0007CN-4B for bug-guix@gnu.org; Tue, 30 Jul 2019 18:04:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hsaDv-0005SL-SD for bug-guix@gnu.org; Tue, 30 Jul 2019 18:04:01 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:47307) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hsaDv-0005Nd-2M for bug-guix@gnu.org; Tue, 30 Jul 2019 18:03:59 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id E334D631 for ; Tue, 30 Jul 2019 18:03:55 -0400 (EDT) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 36865@debbugs.gnu.org --2b6a8b4f11664a8298b60661407910fc Content-Type: text/plain *Symptoms* After running guix gc, and rebooting, I got the following errors (which stay something like half a second on the screen): error: no such device: /gnu/store/0fijjh7qw8ppsks0ba3q9m873ljhj797-grub-2.04/share/grub/unicode.pf2 error: file `/gnu/store/0fijjh7qw8ppsks0ba3q9m873ljhj797-grub-2.04/share/grub/unicode.pf2' not found. error: no suitable video mode found. error: no video mode activated. I then get to the grub menu where I can pick which version of Guix I want to boot on, but all of them lead to getting stuck on the following text (with nothing moving after that for at least several minutes): error: no suitable video mode found. Booting in blind mod *Fix * Fortunately nckx was on IRC and saved me by telling me to press C to get the grub command line when I got to the grub menu and run setup_gfxterm. Running guix system reconfigure config.scm removed the need for setup_gfxterm for subsequent boots. *Cause* guix gc thinks that grub (and a lot of other stuff that it shouldn't think is dead) is dead, as shown by the following commands (given by nckx): $ grep unicode /boot/grub/grub.cfg search --file --set /gnu/store/0fijjh7qw8ppsks0ba3q9m873ljhj797-grub-2.04/share/grub/unicode.pf2 if loadfont /gnu/store/0fijjh7qw8ppsks0ba3q9m873ljhj797-grub-2.04/share/grub/unicode.pf2; then $ guix gc --list-dead | grep 0fijjh7qw8ppsks0ba3q9m873ljhj797 finding garbage collector roots... determining live/dead paths... /gnu/store/0fijjh7qw8ppsks0ba3q9m873ljhj797-grub-2.04 I was also able to reproduce the bug by running guix gc and rebooting again. --2b6a8b4f11664a8298b60661407910fc Content-Type: text/html Content-Transfer-Encoding: quoted-printable
Symptoms

After running guix gc, and rebooting= , I got the following errors (which stay something like half a second on= the screen):

error: no such device: /gnu/store/0fijjh7qw8ppsks0ba3q9m873ljhj797-gru= b-2.04/share/grub/unicode.pf2
error: fi= le `/gnu/store/0fijjh7qw8ppsks0ba3q9m873ljhj797-grub-2.04/share/grub/uni= code.pf2' not found.
error: no suitable= video mode found.
error: no video mode= activated.

I then get to the grub m= enu where I can pick which version of Guix I want to boot on, but all of= them lead to getting stuck on the following text (with nothing moving a= fter that for at least several minutes):

error: no suitable video mode found.
Booting in blind mod

Fix
<= br>
Fortunately nckx was on IRC and saved me by telling me to = press C to get the grub command line when I got to th= e grub menu and run setup_gfxterm.

=
Running guix system reconfigure config.scm= removed the need for setup_gfxterm for subsequent bo= ots.

Cause

gu= ix gc thinks that grub (and a lot of other stuff that it shouldn'= t think is dead) is dead, as shown by the following commands (given by n= ckx):


$ grep uni= code /boot/grub/grub.cfg
search --file --set /gnu/store/0fijjh7qw8ppsks0ba3q9m873ljhj797-gru= b-2.04/share/grub/unicode.pf2
if= loadfont /gnu/store/0fijjh7qw8ppsks0ba3q9m873ljhj797-grub-2.04/share/gr= ub/unicode.pf2; then

= $ guix gc --list-dead | grep 0fijjh7qw8ppsks0ba3q9m873ljhj79= 7
finding garbage collector roo= ts...
determining live/dead pat= hs...
/gnu/store/0fijjh7qw8ppsk= s0ba3q9m873ljhj797-grub-2.04

I was also able to= reproduce the bug by running guix gc and rebooting a= gain.
--2b6a8b4f11664a8298b60661407910fc--