Reconfigure broke GRUB

  • Done
  • quality assurance status badge
Details
4 participants
  • Danny Milosavljevic
  • ison
  • Ludovic Courtès
  • Jakob L. Kreuze
Owner
unassigned
Submitted by
ison
Severity
serious
I
(address . bug-guix@gnu.org)
20190806023517.uvf7ukp3qprsfvpv@cf0
Continuing this issue from https://issues.guix.gnu.org/issue/36878

guix reconfigure recently broke GRUB for me. When rebooting I get
dropped to a "grub rescue>" shell with an error about
"grub_file_filters" being an unknown symbol.
If I try doing the usual commands to tell GRUB how to boot I just
see the above error repeated, or "unknown command" when I run
things such as insmod or "configfile".

So to fix the problem I can boot to a Guix install disk and do
"guix init" which rebuilds the system using older package
definitions from the disk.
That allows me to get a working system, but if I do another
"guix pull" and reconfigure using the same config file it breaks
GRUB again when I reboot. "guix describe" shows that my latest
attempt was with commit 35600cd.

Here is the bootloader and filesystem sections of my config:
(bootloader (bootloader-configuration
(bootloader grub-efi-bootloader)
(target "/boot/efi")))
(file-systems (cons* (file-system
(device "/dev/sda2")
(mount-point "/boot/efi")
(type "vfat"))
(file-system
(device (file-system-label "guixsd-root"))
(mount-point "/")
(type "ext4"))
%base-file-systems))

I should make a note that I usually don't use efi, and I'm not
completely confident it's all set up properly. I do have a
"BIOS boot" partition on /dev/sda1 too, is that even needed with
efi? Although, I have been using this setup, and the above
definitions, for about 6 months now without any bootloader or
filesystem issues. And the same config is being used to fix the
system when GRUB breaks as well as to reconfigure afterward
(causing the breakage). So my guess is some new update is the
culprit.
J
J
Jakob L. Kreuze wrote on 6 Aug 2019 15:30
(name . ison)(address . ison@airmail.cc)(address . 36942@debbugs.gnu.org)
87tvauxvxo.fsf@sdf.lonestar.org
Hi ison,

Thanks for opening a new ticket for tracking this.

ison <ison@airmail.cc> writes:

Toggle quote (31 lines)
> Continuing this issue from https://issues.guix.gnu.org/issue/36878
>
> guix reconfigure recently broke GRUB for me. When rebooting I get
> dropped to a "grub rescue>" shell with an error about
> "grub_file_filters" being an unknown symbol.
> If I try doing the usual commands to tell GRUB how to boot I just
> see the above error repeated, or "unknown command" when I run
> things such as insmod or "configfile".
>
> So to fix the problem I can boot to a Guix install disk and do
> "guix init" which rebuilds the system using older package
> definitions from the disk.
> That allows me to get a working system, but if I do another
> "guix pull" and reconfigure using the same config file it breaks
> GRUB again when I reboot. "guix describe" shows that my latest
> attempt was with commit 35600cd.
>
> Here is the bootloader and filesystem sections of my config:
> (bootloader (bootloader-configuration
> (bootloader grub-efi-bootloader)
> (target "/boot/efi")))
> (file-systems (cons* (file-system
> (device "/dev/sda2")
> (mount-point "/boot/efi")
> (type "vfat"))
> (file-system
> (device (file-system-label "guixsd-root"))
> (mount-point "/")
> (type "ext4"))
> %base-file-systems))

This narrows it down quite a bit -- I suspect that we're broken for
'grub-efi-bootloader', since I've been able to successfully reconfigure
with 'grub-bootloader' on both of my machines.

Toggle quote (5 lines)
> I should make a note that I usually don't use efi, and I'm not
> completely confident it's all set up properly. I do have a
> "BIOS boot" partition on /dev/sda1 too, is that even needed with
> efi?

I don't believe so. I think the ESP partition on /dev/sda2 is all you
need.

Toggle quote (7 lines)
> Although, I have been using this setup, and the above
> definitions, for about 6 months now without any bootloader or
> filesystem issues. And the same config is being used to fix the
> system when GRUB breaks as well as to reconfigure afterward
> (causing the breakage). So my guess is some new update is the
> culprit.

It certainly sounds like it, and I'm the last person to have touched the
bootloader installation code :)

I'll look into this ASAP. Thanks again for the bug report!

Regards,
Jakob
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEa1VJLOiXAjQ2BGSm9Qb9Fp2P2VoFAl1JgRMACgkQ9Qb9Fp2P
2VpLCg/5ATK1puUb/E0fEl4gGa3+TMr3EvJBD+y4RO/b2acfM1ee4oKmk1DA9QKS
WlVgUn0sFuJk09sm+tLoBle3CFDVRowSaAABvGEHw+LUZGUK1OoSm2pTvHBQoeU5
J/GbXmW54FdS4prmEN+iPTt9GDnfEjH0BlkBK3p5aLtXzf5alc6xUwTcqwxOaXad
hRjabSgIXr/58BYhTVhPczohq1aXxEUOXJIt0Vt30ALwlT9Y/V/ocCNoJWDRnsql
2YI4Yu5h1JZp9K3MrMXyqXlp5HtETHnWB+xDvuo2tI120AO7M1fmHmNVzmw8ia/Q
wTIqxF5xZJczmw5H+/8fO2pI9wWAOyCMczU6w7k27+1YCHhIgWtRA0cSU8gwGf06
QDS2xFkZ+ADDGzu/QD48cxonIjK8canlT0P7lfttvEdhIiIT3KcIEgJB6hTGewtw
yDtBTG7CO9L27EjDJNGWWB2XUGCQmf/edoh64TEXlnku6c4ennI5g3zd5iqwddhI
xqjNr+A9kz+5+q+Fr0WCbVoorMf9usDRnXkFsiYTteDRoLq/WVjQbmRYZ8nPgLej
Tdwg9bWnBAN1iS6fB+wtJEQRJCXLl0luA0c0V8hpYofQ0EkYqWPleYRriAc9t92J
ARrcOeKdUJZyFkuN3qNlWxzYW8/iT81nQkBQZceDwW5zBDv3Z5s=
=NW4o
-----END PGP SIGNATURE-----

J
J
Jakob L. Kreuze wrote on 6 Aug 2019 20:18
(name . ison)(address . ison@airmail.cc)(address . 36942@debbugs.gnu.org)
87o912duoo.fsf@sdf.lonestar.org
Hi ison,

I wasn't able to reproduce with an OVMF virtual machine, but the
symptoms you've described lead me to suspect that the issue concerns
improper installation of a GC root for grub. Would you be willing to see
if the patch provided by #36947 fixes your issue?

Regards,
Jakob
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEa1VJLOiXAjQ2BGSm9Qb9Fp2P2VoFAl1JxGcACgkQ9Qb9Fp2P
2VrG3Q/9EdT2QuIE6NdB+SOpH3cN2KVZHilcRRff14O2obfeYR1y9fQSHHEKwqbA
Ke0fz0qfvSHV4tzPuR8g6ClgZMnlW/7A0qY1oP67p9qeSB9iYBDMv/IKsyqKZ0Ye
D3/eOW74Vs200ti7oWN9fnoUOWAsucIrM/i6taaJ+B2ow+SeYS9b2/+yVBa9P/1v
vJd+f0INLlPVJIOAk5tSgPwve8OGq89oRBfPTbTX9gUSY8OH4IYnETI0+cqHB5DO
hro6znXhcJvT4f4atmwQ1QqTaFtJ1AVOtdmc4KaMCx2RgTTSe4cQZgod1Obn7+Zz
fSTyTK2u3n9f4pqP80Cm2jFLMTPNeE7CGhpfYRNfsnYFKv1sx8oO+hj+yrSPVf9v
6n3babz/gC6TB5lhWen2ji9ARZ4Rd1hP8hkc0CDVBSu2+soDAdV/Xi4t2bwXxBDR
xGRF9iXz5iZ6gdA46Yv5h0ZDmI3U5/65KjqnG+GdlsTJtx8GGqQ7libwxwkqHRXT
OkYIztFTV8n7kqzQ36ttE/a4QDA0zUfj9p4U3Q/fkwS//Q7VH0BzUbCazhQtFheo
4vJiWfsu1AQhauxKcNT+WzEUTy5liYh7wArXyHboenJEAai+3aVjXhanraY5Pfe3
NQNxdlV/uHE5ApM30sOH1Q29ukHsHQYdj6et6hiXBFLKtOGf8EA=
=WCeA
-----END PGP SIGNATURE-----

D
D
Danny Milosavljevic wrote on 6 Aug 2019 21:44
(name . Jakob L. Kreuze)(address . zerodaysfordays@sdf.lonestar.org)
20190806214420.7c465ecc@scratchpost.org
Hi,

I've examined /var/guix/gcroots without #36947 and I get:

lrwxrwxrwx 1 root root 18 24. Jul 11:32 profiles -> /var/guix/profiles
lrwxrwxrwx 1 root root 19 24. Jul 11:32 current-system -> /run/current-system
lrwxrwxrwx 1 root root 18 24. Jul 11:32 booted-system -> /run/booted-system
lrwxrwxrwx 1 root root 26 29. Jul 22:26 bootcfg -> //var/guix/gcroots/bootcfg

So I guess I'm one "guix gc" away from also destroying my installation.

The double slash looks very suspicious...
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl1J2JQACgkQ5xo1VCww
uqXR2Af/T/dahsdCPvtl94P3u0m+NTtM3LGVV/nf8Fv1KpiwMwnoaYkblMGJvfVr
oXsYZApBCwrdFvHR2Cx2Wnm8DKpszONHevgAiuo/PSkNfxhAHEddc0gyiioBXXco
hLR4jShYAWLDt7OqMVNWRvz9J7UcftvF5TnheZrmV9TgTDEg2Wks+/2/0OuWEaBP
4N4QHSqD3KvTykvsGuzghIF7LXOa8uPZb215XOqubscqfsFUHZqoTCdCYgsHcL5y
YAEvhHc6TEDd8P8q+pIi3spQREEmuCZlBHr+dO5Tkj6C/KqjXinp7M3MSofG1PDa
As6pgHi/PwE5Q3yvB6V26IFWHpqwmA==
=y1nC
-----END PGP SIGNATURE-----


J
J
Jakob L. Kreuze wrote on 6 Aug 2019 21:48
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)
878ss6xeg4.fsf@sdf.lonestar.org
Hi Danny,

Danny Milosavljevic <dannym@scratchpost.org> writes:

Toggle quote (12 lines)
> Hi,
>
> I've examined /var/guix/gcroots without #36947 and I get:
>
> lrwxrwxrwx 1 root root 18 24. Jul 11:32 profiles -> /var/guix/profiles
> lrwxrwxrwx 1 root root 19 24. Jul 11:32 current-system -> /run/current-system
> lrwxrwxrwx 1 root root 18 24. Jul 11:32 booted-system -> /run/booted-system
> lrwxrwxrwx 1 root root 26 29. Jul 22:26 bootcfg -> //var/guix/gcroots/bootcfg
>
> So I guess I'm one "guix gc" away from also destroying my
> installation.

Was this fixed after applying #36947?

Toggle quote (2 lines)
> The double slash looks very suspicious...

Any reason in particular? The second slash is there because
'%gc-roots-directory' has a leading slash, and that gets appended to
'target', which in this case is '/'.

Regards,
Jakob
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEa1VJLOiXAjQ2BGSm9Qb9Fp2P2VoFAl1J2ZsACgkQ9Qb9Fp2P
2VpXZA//bcbJgOXA+3lSaO4PW1zBWYjwh3HU9QEl1CLz2NJRgMbeatoa9q0zVRbx
xKYFhPakekDwjtGqmbWUdfTkvvvSzlkTE+KTfSKM9L+k8deqtKbEdEOUuS3ovK78
z0R1BitMHSSZjxq1R3AxxfjLC0Iwh+dNpkn87409rld1dXWleClMeUq3ACjfumJo
EU0Svfr75MI1X9o6+0xMMGhxuiFpLJM5qM9//8DhWFyITlsQu+6595niMt1U+Cip
fBAlqFtoZiVcqCRFypCWnbFvGNw49UbqV5c6vdpFAATbkJHUv4NnonCytzOAh65J
SP1OwcdxijHca3qORwMjEhGXsS2dxIfXglkzh0HGCObUk5vBywPEH/AwYKagODD5
y9d7XHGOx/Yh4sgeMTa7Ii02JEx8DdjmeHgZEjg3oUOI2yXVwP+j6Nfts6p0or5+
EEvS0aOR46dLiOlloTC212GIPrPyTMpmoeGpT/By2HfO/TuzKGXxrL9IxF5jehlG
Xm/ZH/Zhedn36eI/d4/tK9P9g/bRcO+TPPhYYTnddk1dIRHZwkXWLvV+OJrcKr5k
PQIIsaWIwcFY5MpHSC77Icoq/V06QczP2qND59F3eukkiYOnZDkKXqFAMHUFe04Q
rRf4RBYWALWTz3QHJ5Q1It+ZdeMFESRok7ciFcJqG8ouM87ePlc=
=LltY
-----END PGP SIGNATURE-----

D
D
Danny Milosavljevic wrote on 6 Aug 2019 23:53
(name . Jakob L. Kreuze)(address . zerodaysfordays@sdf.lonestar.org)
20190806235322.79ba57fe@scratchpost.org
Hi Jakob,

On Tue, 06 Aug 2019 15:48:43 -0400
zerodaysfordays@sdf.lonestar.org (Jakob L. Kreuze) wrote:

Toggle quote (16 lines)
> Danny Milosavljevic <dannym@scratchpost.org> writes:
>
> > Hi,
> >
> > I've examined /var/guix/gcroots without #36947 and I get:
> >
> > lrwxrwxrwx 1 root root 18 24. Jul 11:32 profiles -> /var/guix/profiles
> > lrwxrwxrwx 1 root root 19 24. Jul 11:32 current-system -> /run/current-system
> > lrwxrwxrwx 1 root root 18 24. Jul 11:32 booted-system -> /run/booted-system
> > lrwxrwxrwx 1 root root 26 29. Jul 22:26 bootcfg -> //var/guix/gcroots/bootcfg
> >
> > So I guess I'm one "guix gc" away from also destroying my
> > installation.
>
> Was this fixed after applying #36947?

Yes.

Toggle quote (6 lines)
> > The double slash looks very suspicious...
>
> Any reason in particular? The second slash is there because
> '%gc-roots-directory' has a leading slash, and that gets appended to
> 'target', which in this case is '/'.

Ah okay.
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl1J9tIACgkQ5xo1VCww
uqUUsAf/ZZ8o8t6nyVfmrayN5SZhgbD6rCBLbrHqQhduDZxAwECewkjcqPBCSqtT
AI0zvDJF/VbXic6q9pgWfZdiDjT8FiCs3VNzqq0bmHthzOIBq0jxZNo1p0xIJZ7b
6qc7A7jVc9S37LDIh1cUGPDGhILVOww4aWcQXnfJINtb37oEq/dys+Z0yZywL07k
hHOWtUJuCQMzgfdaXoBLWXiezBG6Ildr/6te24yWLdUfmC5PvMn9XQ8Ul6Z2LAtt
iDHiUb36eWVtbHq0T8lXX6h6oyeqUzGE0/1C2jeLZV8oMk0hbYZGKekAnlZ1Ovrs
ET6+LQoATehXlALm6MmFIp189w5+HQ==
=L1M/
-----END PGP SIGNATURE-----


I
(name . Jakob L. Kreuze)(address . zerodaysfordays@sdf.lonestar.org)(address . 36942@debbugs.gnu.org)
20190807191628.qm3mmpmkobumhsx4@cf0
On Tue, Aug 06, 2019 at 02:18:15PM -0400, Jakob L. Kreuze wrote:
Toggle quote (7 lines)
> Hi ison,
>
> I wasn't able to reproduce with an OVMF virtual machine, but the
> symptoms you've described lead me to suspect that the issue concerns
> improper installation of a GC root for grub. Would you be willing to see
> if the patch provided by #36947 fixes your issue?

I'm sorry to report that it actually didn't fix the problem.

Also I don't know why it didn't occur to me to mention this detail
before, but the reason I previously thought the message mentioned
in bug#36878 was important is because it's actually the very last
thing I see on the command line after reconfiguring. The line I'm
talking about is of course:
shepherd: Evaluating user expression (let* ((services (map primitive-load (?))) # ?) ?)

I'm pretty sure even if that message is normal, it's not normal
for it to be the last line you see.
Perhaps the reconfigure is dying at that point, or some point
shortly after, without outputting any other errors.
J
J
Jakob L. Kreuze wrote on 7 Aug 2019 21:43
(name . ison)(address . ison@airmail.cc)(address . 36942@debbugs.gnu.org)
87imr8n4lc.fsf@sdf.lonestar.org
Hi ison,

ison <ison@airmail.cc> writes:

Toggle quote (2 lines)
> I'm sorry to report that it actually didn't fix the problem.

I'll continue to investigate; perhaps I'll be able to reproduce if I
copy your exact partition scheme in the virtual machine. I'm sorry that
you had to go through that whole 'guix init' spiel again.

Toggle quote (12 lines)
> Also I don't know why it didn't occur to me to mention this detail
> before, but the reason I previously thought the message mentioned in
> bug#36878 was important is because it's actually the very last thing I
> see on the command line after reconfiguring. The line I'm talking
> about is of course: shepherd: Evaluating user expression (let*
> ((services (map primitive-load (?))) # ?) ?)
>
> I'm pretty sure even if that message is normal, it's not normal for it
> to be the last line you see. Perhaps the reconfigure is dying at that
> point, or some point shortly after, without outputting any other
> errors.

Do you see a "bootloader successfully installed on ..." message earlier
in the output? 5c8c8c455 changed the order that things are done in so
that services are upgraded after the bootloader is installed.

Regards,
Jakob
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEa1VJLOiXAjQ2BGSm9Qb9Fp2P2VoFAl1LKgAACgkQ9Qb9Fp2P
2Vpb8xAAmwcmlShMxXDIOrJQVIl+EayDAF//57GaZNaKNNJL1FZqvjYiUPaxEMUU
kVdyyzNF9Ai92Juhya0NhFOGXpEdcA+7LFthowny77WLcSczMtikJcsF3ZtzFysA
tB7dgyAeMCFfZ4gC5XgNlFjASsJwjk0qq8GGptXoRm1fp6N86OgZnkp1C0XSIi2l
gqS8DzrkCYpa5rKFowwwztBLMfVxWjaJmZjfuNcVmWSRnr5Lt/9gr7WUmVCI+hx4
bzKXaiFfHwHNux8DbtP25dJlRTIFUazgtfEnLyAhhRbc49XoNB51uduxWpn8z+jG
t+oZ6xz2aiSvo0eJOQIJcJZaA9Ebs0+EYT1qoZGdYXhpuFtM8t0TcJC7a0j4AWrf
6eqh3icvn01NEvyVYePJP1EGY+k8IwuFamG0vNmo25hqvFvO4UCZexZgBxLCDA/E
XakNPJgSn+3gxsuuTATh8y6DPgnWYZz3qKGr7MBd8FEXdWu+n4u1FcNx7gEHf43z
PF6R0+8/V/tWBnzDfymkaMHbUEasEdgzgfQ5QXV8Ckl2yoMyhyRMNSZ3fzwnRtYC
i3KE706clIGLzL//8n21NMRLyO00GEBe71qU1Mp5ADR9nvWpXP1O2EOqXoI5/jt3
Xol0VnThW9PGbIIE/CKmmaPuFAnYj9YJgQ/ti40V3juq+b6flbA=
=Nw0q
-----END PGP SIGNATURE-----

J
J
Jakob L. Kreuze wrote on 14 Aug 2019 21:50
(name . ison)(address . ison@airmail.cc)(address . 36942@debbugs.gnu.org)
87r25nr0gn.fsf@sdf.lonestar.org
Hi ison,

ison <ison@airmail.cc> writes:

Toggle quote (28 lines)
> On Wed, Aug 07, 2019, Jakob L. Kreuze wrote:
>> I'll continue to investigate; perhaps I'll be able to reproduce if I
>> copy your exact partition scheme in the virtual machine. I'm sorry that
>> you had to go through that whole 'guix init' spiel again.
>
> No problem, it's a backup machine anyway, I've held off on updating
> my main (but it doesn't use efi so maybe I can). If this is a
> problem that only I'm having and nobody else then I wonder if a
> fresh install would fix it. Although I'm surprised nobody else seems to be experiencing it.
>
> The only unusual thing I did before it broke is that I tried to consolidate my configs from 2 machines into a single one by adding case statements.
> For example at the top I had (define local-profile 'laptop)
> and then my bootloader was something like:
> (bootloader (bootloader-configuration
> (case local-profile
> ((desktop)
> (bootloader grub-bootloader)
> ...)
> ((laptop)
> (bootloader grub-efi-bootloader)
> ...))))
>
> But I've since reverted back to my old config for all the subsequent
> "guix init" and reconfigures I've done, so it seems unlikely to be the
> cause but I thought I'd mention it anyway.
> Maybe having a BIOS boot partition on /dev/sda1 even though I'm using
> efi is somehow messing it up?

After some further research, I was able to create a virtual machine with
the partition scheme and bootloader configuration that you described.
;; This is an operating system configuration template ;; for a "bare bones" setup, with no X11 display server. (use-modules (gnu)) (use-service-modules networking ssh) (use-package-modules screen) (operating-system (host-name "komputilo") (timezone "Europe/Berlin") (locale "en_US.utf8") ;; Boot in "legacy" BIOS mode, assuming /dev/sdX is the ;; target hard disk, and "my-root" is the label of the target ;; root file system. (bootloader (bootloader-configuration (bootloader grub-efi-bootloader) (target "/boot/efi"))) (file-systems (cons* (file-system (device "/dev/sda2") (mount-point "/boot/efi") (type "vfat")) (file-system (device (file-system-label "my-root")) (mount-point "/") (type "ext4")) %base-file-systems)) ;; This is where user accounts are specified. The "root" ;; account is implicit, and is initially created with the ;; empty password. (users (cons (user-account (name "alice") (comment "Bob's sister") (group "users") ;; Adding the account to the "wheel" group ;; makes it a sudoer. Adding it to "audio" ;; and "video" allows the user to play sound ;; and access the webcam. (supplementary-groups '("wheel" "audio" "video"))) %base-user-accounts)) ;; Globally-installed packages. (packages (cons screen %base-packages)) ;; Add services to the baseline: a DHCP client and ;; an SSH server. (services (append (list (service dhcp-client-service-type) (service openssh-service-type (openssh-configuration (port-number 2222)))) %base-services)))
However, I still cannot seem to reproduce this issue with the most
recent master. Everything boots fine. I've extracted the bootloader
installation "script", and everything appears to be normal to me.
(begin (use-modules (gnu build bootloader) (gnu build install) (guix build utils) (guix store) (guix utils) (ice-9 binary-ports) (srfi srfi-34) (srfi srfi-35)) (let* ((gc-root (string-append "/" %gc-roots-directory "/bootcfg")) (temp-gc-root (string-append gc-root ".new"))) (switch-symlinks temp-gc-root "/gnu/store/xlb81742i5sb4cdmidfhabprc17ijwck-grub.cfg") (install-boot-config "/gnu/store/xlb81742i5sb4cdmidfhabprc17ijwck-grub.cfg" "/boot/grub/grub.cfg" "/") (when #t (catch #t (lambda () ((lambda (bootloader efi-dir mount-point) (let ((grub-install (string-append bootloader "/sbin/grub-install")) (install-dir (string-append mount-point "/boot")) (target-esp (if (file-exists? (string-append mount-point efi-dir)) (string-append mount-point efi-dir) efi-dir))) (setenv "GRUB_ENABLE_CRYPTODISK" "y") (invoke/quiet grub-install "--boot-directory" install-dir "--bootloader-id=Guix" "--efi-directory" target-esp))) "/gnu/store/8hbf54vl9hfgbnfigbqcf0di1agajr88-grub-efi-2.04" "/boot/efi" "/")) (lambda args (delete-file temp-gc-root) (apply throw args)))) (rename-file temp-gc-root gc-root)))
To the rest of guix -- I would really appreciate some help here. I'm not
sure what else I can do for working on this bug report.

Regards,
Jakob
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEa1VJLOiXAjQ2BGSm9Qb9Fp2P2VoFAl1UZegACgkQ9Qb9Fp2P
2VrxMw/9GINmtAio0osjDRUboFHKlGVUZIknkeOU8zRwepFi6Fb2OQhLe2cnf93l
AzyzsEryZc2xe8XhxLNEajun9wQG75YtjCJN0e+/uzsYImlhulaY26Lv6FarIpC1
eA1dnAldCZxequura1gborPKUEIgQ/rPH1XD0f9LGdziulvCAeJSRWGQNCtrcdz+
mQvRAncpKYwxiqy+fRcLoIVnEONZCpKet1+VuKKV+ULZSkH4opEaLOkfQFfnx/4Z
sOMCJlasSBdLcP5KmTBpcoiBlQUqqLZWZJgK0eESEtvlGQKQ0JyXM8X4/wdff5p6
QUTs3YNuX6g4QOYk8hWgycju80P0C5SC2TxDxTuKVJAPsu0+1RtfwwrcfFBu5k7U
WK6B6iNT3Anx+cmDXAm9kwXYOb2zr87KXTGzH1cmqSc77y3cpl51IWv9Uaf3di8F
4ZhxK5GxbJtsbjUB2pUNOFaGAbovwijjXaOjkuQD3mYOBTEw/Lq935tXeuE/oCD/
P71JoY30HNpC5sZHSzEBhHjnryUe8Z7jrNx0ANA0TW7N6BE8rO7pPMvghhnPh5r8
VUTYkV0DutJZnAPrtyaSTCpQQg+PxUcW+hKihacbF7/7tWNe6cx5GSXm/nWChv33
orf4Cu5jMBuFHVLMqhSaROOYjpWT+AO82PEAvvonsrunybyXH40=
=CiAp
-----END PGP SIGNATURE-----

I
(name . Jakob L. Kreuze)(address . zerodaysfordays@sdf.lonestar.org)(address . 36942@debbugs.gnu.org)
20190815112039.d5x4ondia6osghq5@cf0
On Wed, Aug 14, 2019 at 03:50:00PM -0400, Jakob L. Kreuze wrote:
Toggle quote (4 lines)
> However, I still cannot seem to reproduce this issue with the most
> recent master. Everything boots fine. I've extracted the bootloader
> installation "script", and everything appears to be normal to me.

Sorry it took me so long to reply, I didn't have access to the
broken machine until now. As you requested here is the partitions as
listed by parted:

Number Start End Size File system Name Flags
1 1049kB 3046kB 2097kB grub bios_grub
2 3146kB 540MB 537MB fat32 efi boot, esp
3 540MB 2588MB 2048MB linux-swap(v1) swap
4 2588MB 750GB 748GB ext4 guixsd

/boot/efi looks ok as far as I can tell at least. It's tree is:
/boot/efi/
??? EFI
??? grub
? ??? grubx64.efi
??? Guix
? ??? grubx64.efi
??? GuixSD
??? grubx64.efi
All 3 grubx64.efi files differ from each other and are around 120kb.

====================================================================
But considering you can't reproduce the issue would it be a good
idea for me to reinstall and see if I can even reproduce it?
Although I think this time I would leave off the bios_grub partition
I'm willing to keep testing the current bug if it's important or
indicative of a more serious problem. But please don't feel
obligated to keep working on this just for me, I'm perfectly fine
just reinstalling. The issue doesn't seem to affect my desktop
anyway, I was able to upgrade it smoothly.

It's always possible the issue was caused by some strange
combination involving the patched bug, from earlier in the
discussion, and my weird partition layout. Might not even be worth
investigating unless it happens to someone else
(or me again after a fresh install).
J
J
Jakob L. Kreuze wrote on 16 Aug 2019 16:36
(name . ison)(address . ison@airmail.cc)(address . 36942@debbugs.gnu.org)
874l2hmb24.fsf@sdf.lonestar.org
ison <ison@airmail.cc> writes:

Toggle quote (3 lines)
> Sorry it took me so long to reply, I didn't have access to the broken
> machine until now.

No worries :)

Toggle quote (8 lines)
> As you requested here is the partitions as listed by parted:
>
> Number Start End Size File system Name Flags
> 1 1049kB 3046kB 2097kB grub bios_grub
> 2 3146kB 540MB 537MB fat32 efi boot, esp
> 3 540MB 2588MB 2048MB linux-swap(v1) swap
> 4 2588MB 750GB 748GB ext4 guixsd

Hm. Nearly the same as what I had, though my partitions had different
sizes and I didn't have a swap partition. I may try again with this
exact setup when I get back to the United States just to see what
happens.

Toggle quote (11 lines)
> /boot/efi looks ok as far as I can tell at least. It's tree is:
> /boot/efi/
> ??? EFI
> ??? grub
> ? ??? grubx64.efi
> ??? Guix
> ? ??? grubx64.efi
> ??? GuixSD
> ??? grubx64.efi
> All 3 grubx64.efi files differ from each other and are around 120kb.

Interesting... I only have '/boot/efi/EFI/Guix'. Do you have a
'/boot/grub'?

Toggle quote (15 lines)
> But considering you can't reproduce the issue would it be a good
> idea for me to reinstall and see if I can even reproduce it?
> Although I think this time I would leave off the bios_grub partition
> I'm willing to keep testing the current bug if it's important or
> indicative of a more serious problem. But please don't feel
> obligated to keep working on this just for me, I'm perfectly fine
> just reinstalling. The issue doesn't seem to affect my desktop
> anyway, I was able to upgrade it smoothly.
>
> It's always possible the issue was caused by some strange
> combination involving the patched bug, from earlier in the
> discussion, and my weird partition layout. Might not even be worth
> investigating unless it happens to someone else
> (or me again after a fresh install).

I think it may be indicative of a more serious problem, since you
mentioned that this was fine up until the commit refactoring 'guix
system reconfigure'. If you're willing to reinstall and see if you can
reproduce it, that maywould be helpful -- you could send me the relevant
'install-bootloader.scm' store item if it breaks again.

Thank you very much, ison. I appreciate your cooperation here greatly.

Regards,
Jakob
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEa1VJLOiXAjQ2BGSm9Qb9Fp2P2VoFAl1Wv4MACgkQ9Qb9Fp2P
2VqRLw/8DG+P3vVVEpmLx777nQpV6nrkazz6KtUcTgqmndpsKuuiGP6b/t65KNc2
QfWed7e+h+G9y+kTPVTPkGqSnT5Q2Iu3bOlfcSe3cmxzWMW2aREiYAJezJLyznQe
2dR8z1mvJTR0f8MpSa4bWaHFhVrKmGcjr8Yc3W2PadyuMMSB1UN4KcdVBL/wLEzq
/UjCSIDwc5PNauCdOwvZ+C+fbgyo1hNdOkDuGOjIuip2qPUOiwwdquXfI3R3egCN
5+rWtZzpEvehAiIZ7xsRqsYGSPNNOXmdVvjoUGrFchpkAaA3gNJNo858qLXGGBO4
lVtZglNU+i+lGAHEXmlHsdhNUR5OvrN5sIrqMHn3pLVDtq0/0fyZkdSpUSeb89bF
WEMi3NniDf+qhw5pmczqH3VAiIbguaudKGhHLNr+o997UnVAqr1uXFri7mi3v1oz
SO13lwUyeW7/jffq4nV8VVoFcgdKETRLRNHo/jzyw20xnfTOxOq49xei1jDHP/La
2GndHSP1F2VhUlodCA04PsYAaN84dfAWnIzIElW33zBe6E5+FPaJXO3Fr7b5KOzT
EaeZl1hxrzxrDMnDd3b0mmNJhYAY6RivJQjOWcTMcLCIA+2H260rY1QN25KBai4q
58JbnZHRSvbW0vDuqTdelEeTMzW9J+d7g8GkfVmwdiQtNK2b6cI=
=m8S9
-----END PGP SIGNATURE-----

I
(name . Jakob L. Kreuze)(address . zerodaysfordays@sdf.lonestar.org)(address . 36942@debbugs.gnu.org)
20190816233426.xbo3wwu3prgyg3h6@cf0
On Fri, Aug 16, 2019, Jakob L. Kreuze wrote:
Toggle quote (16 lines)
> ison <ison@airmail.cc> writes:
>
> > /boot/efi looks ok as far as I can tell at least. It's tree is:
> > /boot/efi/
> > ??? EFI
> > ??? grub
> > ? ??? grubx64.efi
> > ??? Guix
> > ? ??? grubx64.efi
> > ??? GuixSD
> > ??? grubx64.efi
> > All 3 grubx64.efi files differ from each other and are around 120kb.
>
> Interesting... I only have '/boot/efi/EFI/Guix'. Do you have a
> '/boot/grub'?

I do have a /boot/grub actually. Is that strange?
It looks like a normal /boot/grub to me, and contains a grub.cfg

Toggle quote (8 lines)
> I think it may be indicative of a more serious problem, since you
> mentioned that this was fine up until the commit refactoring 'guix
> system reconfigure'. If you're willing to reinstall and see if you can
> reproduce it, that maywould be helpful -- you could send me the relevant
> 'install-bootloader.scm' store item if it breaks again.
>
> Thank you very much, ison. I appreciate your cooperation here greatly.

Sounds good, I'll reinstall it over the weekend
J
J
Jakob L. Kreuze wrote on 17 Aug 2019 14:49
(name . ison)(address . ison@airmail.cc)(address . 36942@debbugs.gnu.org)
87mug8c5xu.fsf@sdf.lonestar.org
ison <ison@airmail.cc> writes:

Toggle quote (3 lines)
> I do have a /boot/grub actually. Is that strange?
> It looks like a normal /boot/grub to me, and contains a grub.cfg

I think that's normal -- my virtual machine had one, too.

Toggle quote (2 lines)
> Sounds good, I'll reinstall it over the weekend

Thank you :)

Regards,
JAkob
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEa1VJLOiXAjQ2BGSm9Qb9Fp2P2VoFAl1X9+0ACgkQ9Qb9Fp2P
2Vr6Qg/9HJzP+2eKfcXPYvD82Cp1cLs53BguM3dyowMUGtPQQXsQWN6Uq6GEAk3I
SvDoKOTdso747nM3s72Cg81jyuUEguCFzzyYZWarAcUFde/1rBJ/7K8skCzGQtJX
lrGpCLjZwgm6KmDj6bnVDFA8HbENGzOse/sZIedPDmDPfWeFpk3a8Mh2EMbjGDQx
lMEcZL62nStX35Y09rZ261+oY3VT7MSgtujfCmnut7qMmZi3xgGGMi++qTeqMUG5
ygnXL1WFcTPdk07EhfO6tZN0vq67FD2/ByhtxSBHDy5sRmLTstTyNjxvGfOjYwZn
twO+DCvGxyEDCZBOSXvtY++MGlcpiSGevPORVzH7HQa3VRTHi++JApjwNUbPBgTE
psbopgXVgS6XAQrcqKEPUJx7BJ3XNxGMkzswkhen4Lq0w9SINH0LuNyxot4V8njk
NBT1xOIeCju62ggyuAIlDs9aqQJhfAxf+taCfK9n/fT9syVReosq4w/Gk2nhXj0G
/fRmXp7VBIfzP+KaNJwXql4Ym2Snq45dMJBcbYDTUI2mAwhtGrISEONBvV0WXopS
giw2/ca6J3azsa4W0lmUeMg+ta7miZCmW7sOPxb5KxXtrtRtLFA3KhfGexH5qVG+
lyd+PnqNvp8HcAVWNVkhc3YwdKCVFDSJllnqr1r66f9H4BEwJEE=
=hIIh
-----END PGP SIGNATURE-----

I
(name . Jakob L. Kreuze)(address . zerodaysfordays@sdf.lonestar.org)(address . 36942@debbugs.gnu.org)
20190820142758.jfm6bmasroa6vmvf@cf0
On Sat, Aug 17, 2019, Jakob L. Kreuze wrote:
Toggle quote (6 lines)
> ison <ison@airmail.cc> writes:
>
> > Sounds good, I'll reinstall it over the weekend
>
> Thank you :)

So I attempted a re-install and surprisingly it still fails.
I attempted 3 times. Using the graphical installer without efi,
manual install without efi, manual install with efi. All downloaded
and built everything successfully only to fail at the bootloader.
If the problem was my config then I'd think my first attempt would
have succeeded because the graphical installation automatically
built the config file.

At least it's giving an error this time:
error: '/gnu/store/drz35fc...-grub-efi-2.02/sbin/grub-install --boot-directory /mnt/boot --bootloader-id=Guix --efi-directory /boot/efi' exited with status 1: output follows:
/gnu/store/drz35fc...-grub-efi-2.02/sbin/grub-install: error: /gnu/store/drz35fc...-grub-efi-2.02/lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory.

My bootloader is section is still:
(bootloader (bootloader-configuration
(bootloader grub-efi-bootloader)
(target "/boot/efi")))
J
J
Jakob L. Kreuze wrote on 20 Aug 2019 18:51
(name . ison)(address . ison@airmail.cc)(address . 36942@debbugs.gnu.org)
87r25fzsow.fsf@sdf.lonestar.org
ison <ison@airmail.cc> writes:

Toggle quote (17 lines)
> So I attempted a re-install and surprisingly it still fails.
> I attempted 3 times. Using the graphical installer without efi,
> manual install without efi, manual install with efi. All downloaded
> and built everything successfully only to fail at the bootloader.
> If the problem was my config then I'd think my first attempt would
> have succeeded because the graphical installation automatically
> built the config file.
>
> At least it's giving an error this time:
> error: '/gnu/store/drz35fc...-grub-efi-2.02/sbin/grub-install --boot-directory /mnt/boot --bootloader-id=Guix --efi-directory /boot/efi' exited with status 1: output follows:
> /gnu/store/drz35fc...-grub-efi-2.02/sbin/grub-install: error: /gnu/store/drz35fc...-grub-efi-2.02/lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory.
>
> My bootloader is section is still:
> (bootloader (bootloader-configuration
> (bootloader grub-efi-bootloader)
> (target "/boot/efi")))

This is perfect (I mean, not that it still doesn't work, but that we
have some error output). I think I know what's going on. The new 'guix
system reconfigure' uses G-Expressions, and it looks like Grub is being
ungexp'd for the wrong architecture. To be sure, what's the architecture
of this machine?

I'll investigate further and let you know what I find. Thanks again for
doing this.

Regards,
Jakob
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEa1VJLOiXAjQ2BGSm9Qb9Fp2P2VoFAl1cJP8ACgkQ9Qb9Fp2P
2VrXBxAAhxjYypzzaDarVbfsNdtwLoXByBpeqTDzHG+ecAWodQC+vhyhBtydZjfJ
Mzdc6gix3ui1ewDFwxfNqbvWuVdracV4rxT7SGM1rtopD1qV2ma69cmOEhE34kmc
hVrFTQeXE69axgjWqoUbeHk0zYCGezMouPS3vxoxSVx0OXmazKprjzu8Kq6DB/8V
oi97aFeazSNsmsy1phYJwhgq4IdN62QWE8WnBHOZZQyBIw53JzP2UE5Hbj789G9G
bD9eTAXF2c8Ak5aVOx1RWaDQWz6fGXl+o5sQ6pCMVOg3iKZ2SejzQDfAqybNE8DF
+REFtpoV3PAY64C4e7wHVjO5jMWBxacqSvektem952+Vu7DSKFsRkgDrZeBlvEvP
3VxrtvHf7l1V0JaidMDeqjPnedpcnHSWRDOyv/iDnZSwgCA3rIQ11I6AIalWh+U9
asX211D4xwGIR+M+HJ6uxnANDNbZU4+NV+haD3JcyUCDLK6O8zSU7ghpx5pZoH1O
5J/2bqAdW92riionTKpVSsIWtx0/wtQ+XdZEuZ4VwrsZS7yHUIHzPYHMk8uIyRij
GNoRE0IwPDmhuP/6JabVPPUCWeb9e+A5Gn5u1p3Ix1aXaNBsxyf/kMHodIYsXY4I
VCtYPQvLwMmAA2YHCaKy2zaK528aP9Jk3a8j6mEIRMHNqtoUpM4=
=Pa8r
-----END PGP SIGNATURE-----

I
(name . Jakob L. Kreuze)(address . zerodaysfordays@sdf.lonestar.org)(address . 36942@debbugs.gnu.org)
20190820215220.l77uxrcejdyanwxo@cf0
On Tue, Aug 20, 2019, Jakob L. Kreuze wrote:
Toggle quote (12 lines)
> This is perfect (I mean, not that it still doesn't work, but that we
> have some error output). I think I know what's going on. The new 'guix
> system reconfigure' uses G-Expressions, and it looks like Grub is being
> ungexp'd for the wrong architecture. To be sure, what's the architecture
> of this machine?
>
> I'll investigate further and let you know what I find. Thanks again for
> doing this.
>
> Regards,
> Jakob

That's great, thanks for investigating this.
Both the machine architecture and the liveUSB are x86_64.
L
L
Ludovic Courtès wrote on 26 Aug 2019 12:17
(name . ison)(address . ison@airmail.cc)
87pnksz0vn.fsf@gnu.org
Hello ison,

ison <ison@airmail.cc> skribis:

Toggle quote (9 lines)
> At least it's giving an error this time:
> error: '/gnu/store/drz35fc...-grub-efi-2.02/sbin/grub-install --boot-directory /mnt/boot --bootloader-id=Guix --efi-directory /boot/efi' exited with status 1: output follows:
> /gnu/store/drz35fc...-grub-efi-2.02/sbin/grub-install: error: /gnu/store/drz35fc...-grub-efi-2.02/lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory.
>
> My bootloader is section is still:
> (bootloader (bootloader-configuration
> (bootloader grub-efi-bootloader)
> (target "/boot/efi")))

The message above is telling that it’s trying to do a “BIOS” (as opposed
to EFI) install of GRUB, but you specified ‘grub-efi’, hence the
failure.

Is your system really EFI?

Anyway, this issue is different from the original one, so perhaps we
should discuss it on help-guix?

Thanks,
Ludo’.
L
L
Ludovic Courtès wrote on 26 Aug 2019 12:18
control message for bug #36942
(address . control@debbugs.gnu.org)
87lfvgz0u0.fsf@gnu.org
severity 36942 serious
quit
L
L
Ludovic Courtès wrote on 26 Aug 2019 12:20
Re: bug#36942: Reconfigure broke GRUB
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)
87imqkz0rv.fsf@gnu.org
Hi Danny,

Danny Milosavljevic <dannym@scratchpost.org> skribis:

Toggle quote (21 lines)
> On Tue, 06 Aug 2019 15:48:43 -0400
> zerodaysfordays@sdf.lonestar.org (Jakob L. Kreuze) wrote:
>
>> Danny Milosavljevic <dannym@scratchpost.org> writes:
>>
>> > Hi,
>> >
>> > I've examined /var/guix/gcroots without #36947 and I get:
>> >
>> > lrwxrwxrwx 1 root root 18 24. Jul 11:32 profiles -> /var/guix/profiles
>> > lrwxrwxrwx 1 root root 19 24. Jul 11:32 current-system -> /run/current-system
>> > lrwxrwxrwx 1 root root 18 24. Jul 11:32 booted-system -> /run/booted-system
>> > lrwxrwxrwx 1 root root 26 29. Jul 22:26 bootcfg -> //var/guix/gcroots/bootcfg
>> >
>> > So I guess I'm one "guix gc" away from also destroying my
>> > installation.
>>
>> Was this fixed after applying #36947?
>
> Yes.

Closing, because this is apparently the same as
https://issues.guix.gnu.org/issue/36865, which fortunately was fixed a
while back!

Thanks,
Ludo’.
Closed
I
(name . Ludovic Courtès)(address . ludo@gnu.org)
20190827031623.65f3fmc5xip4uj4n@cf0
On Mon, Aug 26, 2019 at 12:20:04PM +0200, Ludovic Courtès wrote:
Toggle quote (8 lines)
>
> Closing, because this is apparently the same as
> <https://issues.guix.gnu.org/issue/36865>, which fortunately was fixed a
> while back!
>
> Thanks,
> Ludo’.

For the record I attempted another install just now and it was
successful. I'm not sure exactly what caused the initial breakage or
what fixed it, but I'm glad it's working now.

Thanks again for the help.
?
Your comment

This issue is archived.

To comment on this conversation send an email to 36942@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 36942
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch