installer: uuid->string failure backtrace (again)

  • Done
  • quality assurance status badge
Details
3 participants
  • Maxime Devos
  • Néstor Arocha
  • Mathieu Othacehe
Owner
unassigned
Submitted by
Néstor Arocha
Severity
normal
N
N
Néstor Arocha wrote on 22 Jan 2022 22:34
error while installing with existing partitions
(address . bug-guix@gnu.org)
Yex4XUd0rJmAFTA7@bananaboat
Hi,

I was trying to get guix installed on my x86_64 machine. (icore 3, 16Gb
RAM, 1TB ssd, ethernet working, using the guix curses installer)

Originally I tried as the only distribution in the system, but grub-efi
wouldn't get installed or recognised by the bios on boot.

Instead I decided to install debian on the first 500Gb and guix on the
second half. My idea is that by sharing the boot/efi partition and
debian managing the boot I would be able to boot guix as well

Debian created the following partitions
1 537mb fat32 /boot/efi
2 512mb ext2 /boot
3 500GB encrypted volume


Then with guix I manually added the 4th partition as encrypted volume
with / mount point.

After the guix installer ask for the password for the new encrypted volume, I'd see the following error:

```
ice-9/eval.scm:159:9: Throw to key 'match-error' with args '("match" "no matching pattern" (#f ext4))'
```

I have attached a literal screenshot with the whole backtrace.

Any suggestions on how to go forward?

Thanks,

Nestor
Attachment: guix_backtrace.png
N
N
Néstor Arocha wrote on 23 Jan 2022 12:29
Update: Tried non efi, independent boot partition and custom boot entry in debian
(address . 53459@debbugs.gnu.org)
Ye08DKgbQmswMaR2@bananaboat
Hi,

I forgot to mention that I am working with current stable guix 1.3.0

I also tried a few things:
* Manual installation doesn't trigger the error at all, but the end result is that it won't boot like before
* an independent boot partition on top of a shared /boot/efi didn't make any difference
* Trying to install guix with the boot-grub loader rather than efi didn't work at all and the boot installed errored

But I am happy to say that (after standard guix install) adding the entry in grub manually in debian
did work:

```
menuentry "Guix" {
insmod part_gpt
insmod chain
set root='(hd0,gpt1)'
chainloader /EFI/Guix/grubx64.efi
}
```

and then running update-grub

For some reason it asks for the encryption password twice.
N
N
Néstor Arocha wrote on 23 Jan 2022 17:37
(address . 53459@debbugs.gnu.org)
Ye2EZcOQra0YHHng@bananaboat
Hi,

I forgot to mention that I am working with current stable guix 1.3.0

I also tried a few things:
* Manual installation doesn't trigger the error at all, but the end result is that it won't boot like before
* an independent boot partition on top of a shared /boot/efi didn't make any difference
* Trying to install guix with the boot-grub loader rather than efi didn't work at all and the boot installed errored

But I am happy to say that (after standard guix install) adding the entry in grub manually in debian
did work:

```
menuentry "Guix" {
insmod part_gpt
insmod chain
set root='(hd0,gpt1)'
chainloader /EFI/Guix/grubx64.efi
}
```

and then running update-grub

For some reason it asks for the encryption password twice.
N
Tried non efi boot, independent boot partition and boot entry from another linux
(name . 53459@debbugs.gnu.org)(address . 53459@debbugs.gnu.org)
1632807543.872790.1642957185677@office.mailbox.org
Hi,

I forgot to mention that I am working with current stable guix 1.3.0

I also tried a few things:
* Manual installation doesn't trigger the error at all, but the end result is that it won't boot like before
* an independent boot partition on top of a shared /boot/efi didn't make any difference
* Trying to install guix with the boot-grub loader rather than efi didn't work at all and the boot installed errored

But I am happy to say that (after standard guix install) adding the entry in grub manually in debian
did work:

```
menuentry "Guix" {
insmod part_gpt
insmod chain
set root='(hd0,gpt1)'
chainloader /EFI/Guix/grubx64.efi
}
```

and then running update-grub
Attachment: file
M
M
Maxime Devos wrote on 23 Jan 2022 18:51
Re: bug#53459: error while installing with existing partitions
(address . control@debbugs.gnu.org)
a44f5d6db54fdae43e7e9a2e5b17c6ea6ad9d83e.camel@telenet.be
retitle 43459 installer: uuid->string failure backtrace (again)
merge 54480 43459
thanks

This seems to be the same issue as https://issues.guix.gnu.org/53380.

Toggle quote (2 lines)
> I forgot to mention that I am working with current stable guix 1.3.0

There's no ‘stable’ Guix; Guix 1.3.0 is just a snapshot of a particular
version of Guix with a bit of extra testing. It doesn't receive
bugfixes.

I recommend trying the latest installer instead of the 1.3.0
Since 53459 appears to be the same issue and it appears to
have been resolved, it would seem likely that it has been
fixed in the latest installer.

Unfortunately, the full conversation of 53380 is not available, so I'm
not sure if it has actually been addressed ...

Greetings,
Maxime.
-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYe2VtRccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7vSUAQD5LtZi97bTtzvkLcOojuPctPMg
iqDEDb8Cwpgmks/kBgEArIIZpio8JbFBbztcsJw2nQGNz8hJ0EZjxrfoaE7MhQI=
=JUDB
-----END PGP SIGNATURE-----


M
M
Maxime Devos wrote on 23 Jan 2022 18:56
148b2f58da97b0816c21fd0bc53e9985d98bae5c.camel@telenet.be
Néstor Arocha schreef op za 22-01-2022 om 21:34 [+0000]:
Toggle quote (4 lines)
> Originally I tried as the only distribution in the system, but grub-
> efi
> wouldn't get installed or recognised by the bios on boot.

Make sure the computer's boot process is configured to the correct mode
-- UEFI or BIOS (sometimes called ‘Legacy mode’). Which of the two
you want depend on what exactly you are doing.

What dou you mean with ‘doesn't get recognised by the bios on boot’ --
what exactly does the boot process say?

About ‘grub-efi wouldn't get installed’ -- this is rather vague, do you
have some kind of error message or something?

Also, it would be useful to see the actual system configuration
(the (operating-system [...])).

Greetings,
Maxime.
-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYe2W1RccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7q7AAP9VlseZP1tSWx9iXOKcIm9J4z+a
MkJJUIooBtEdd85GpwD/e5/zeftv3F3QXPCsAvVPnUkqBQHKJg3csDn8YcvFuQc=
=+2HU
-----END PGP SIGNATURE-----


M
M
Maxime Devos wrote on 23 Jan 2022 18:59
(name . GNU bug tracker automated control server)(address . control@debbugs.gnu.org)
ca3b17748a8cb229883735c02f60c6a8134b47be.camel@telenet.be
Toggle quote (1 lines)
>
retitle 53459 installer: uuid->string failure backtrace (again)
merge 54480 53459
thanks
N
N
Nestor Arocha wrote on 24 Jan 2022 11:05
Re: bug#53459: error while installing with existing partitions
(name . Maxime Devos)(address . maximedevos@telenet.be)(address . 53459@debbugs.gnu.org)
Ye55zMEzJE+w79Uj@higuix
On Sun, Jan 23, 2022 at 06:56:37PM +0100, Maxime Devos wrote:

Toggle quote (3 lines)
> Make sure the computer's boot process is configured to the correct mode
> -- UEFI or BIOS (sometimes called ‘Legacy mode’). Which of the two
> you want depend on what exactly you are doing.
BIOS doesn't have a legacy mode option that I could see (motherboard MSI
MPG z490 gaming plus). So for this system I am stuck with uefi (I think)

Toggle quote (2 lines)
> What dou you mean with ‘doesn't get recognised by the bios on boot’ --
> what exactly does the boot process say?
Toggle quote (3 lines)
> About ‘grub-efi wouldn't get installed’ -- this is rather vague, do you
> have some kind of error message or something?

After installing guix when it tells me to reboot, the next boot will
simply not boot. There is no error within guix or any indication of a
problem.

Even now when running `guix system reconfigure /etc/config.scm`

the output says:

```
building /gnu/store/gh6k581m0qddzrc601rj49j0v3fyim5x-install-bootloader.scm.drv...
guix system: bootloader successfully installed on '/boot/efi'
The following derivation will be built:
/gnu/store/siwn6q6kyxacjz1wdkwd8lm6w18606g8-upgrade-shepherd-services.scm.drv
...
```

But the system still boots with debian's grub first which then I can
chain to guix's grub. I'd expect guix to override the boot or at least
to see the option in the bios

Toggle quote (6 lines)
> Also, it would be useful to see the actual system configuration
> (the (operating-system [...])).
>
> Greetings,
> Maxime.
>
;; This is an operating system configuration template ;; for a "desktop" setup with GNOME and Xfce where the ;; root partition is encrypted with LUKS. (use-modules (gnu) (gnu system nss)) (use-modules (gnu packages vim)) (use-service-modules desktop xorg) (use-package-modules certs gnome suckless wm) (use-modules (gnu packages version-control)) (use-modules (gnu packages gnuzilla)) (use-modules (gnu packages mail)) (use-modules (gnu packages xorg)) (operating-system (host-name "higuix") (timezone "Europe/London") (locale "en_GB.utf8") ;; Choose US English keyboard layout. The "altgr-intl" ;; variant provides dead keys for accented characters. (keyboard-layout (keyboard-layout "gb")) ;; Use the UEFI variant of GRUB with the EFI System ;; Partition mounted on /boot/efi. (bootloader (bootloader-configuration (bootloader grub-efi-bootloader) (target "/boot/efi") (keyboard-layout keyboard-layout))) ;; Specify a mapped device for the encrypted root partition. ;; The UUID is that returned by 'cryptsetup luksUUID'. (mapped-devices (list (mapped-device (source (uuid "44b08e72-ec09-4c5d-a2f4-d166085ead55")) (target "my-root") (type luks-device-mapping)))) (file-systems (append (list (file-system (device (file-system-label "my-root")) (mount-point "/") (type "ext4") (dependencies mapped-devices)) (file-system (device (file-system-label "my-boot")) (mount-point "/boot") (type "ext4") (dependencies mapped-devices)) (file-system (device (uuid "17BE-8961" 'fat)) (mount-point "/boot/efi") (type "vfat"))) %base-file-systems)) ;; Create user `bob' with `alice' as its initial password. (users (cons (user-account (name "bob") (comment "Alice's brother") (password (crypt "alice" "$6$abc")) (group "users") (supplementary-groups '("wheel" "netdev" "audio" "video"))) %base-user-accounts)) ;; This is where we specify system-wide packages. (packages (append (list vim git icecat mutt i3-wm i3status xrandr ;; for HTTPS access nss-certs ;; for user mounts gvfs) %base-packages)) ;; Add GNOME and Xfce---we can choose at the log-in screen ;; by clicking the gear. Use the "desktop" services, which ;; include the X11 log-in service, networking with ;; NetworkManager, and more. (services (append (list (service xfce-desktop-service-type) (set-xorg-configuration (xorg-configuration (keyboard-layout keyboard-layout)))) %desktop-services)) ;; Allow resolution of '.local' host names with mDNS. (name-service-switch %mdns-host-lookup-nss))
M
M
Mathieu Othacehe wrote on 12 Nov 2022 14:49
Re: bug#53459: installer: uuid->string failure backtrace (again)
(name . Néstor Arocha)(address . n@nestorarocha.com)(address . 53459-done@debbugs.gnu.org)
877d00th8d.fsf@gnu.org
Hello,

Toggle quote (2 lines)
> ice-9/eval.scm:159:9: Throw to key 'match-error' with args '("match" "no matching pattern" (#f ext4))'

This is very likely fixed by: ab974ed709976d34917c8f6f9e5cc0004547af45.

Thanks,

Mathieu
Closed
?