Hello Guix,

in my Asahi Guix channel I'm building a Guix system for the Asahi Linux
Installer. This system uses BTRFS because that's what Asahi Linux uses
and I read somewhere that BTRFS images compress better.

A user of my channel reported that after doing a guix pull the system
does not start anymore. After installing my usual test system on my
machine I also see the issue. The logs show this:

```
GC Warning: pthread getattr_np or pthread_attr_getstack failed for main thread
GC Warning: Could not open /proc/stat
Welcome, this is GNU's early boot Guile.
Use 'gnu.repl'. for an initrd REPL.

loading kernel modules..
[    0.798205] macsmc-rtkit 23e400000.smc: Failed to create device link (0x180) 
with supplier 23d0d9300.spmi:pmu@f:rtc_nvmem@d000 for /soc/smc@23e400000/rtc
[    0.798558] macsmc-rtkit 23e400000.smc: Failed to create device link (0x180) 
with supplier 23d0d9300.spmi:pmu@f:rtc_nvmem@d000 for /soc/smc@23e400000/feboot
[    0.7989501 macsme-rtkit 23e400000.smc: Failed to create device link (0x180) 
with supplier 23d0d9300.spmi:pmu@f:legacy_nvmem@9f00 for 
/soc/snc@23e400000/reboot
Scanning for Btrfs filesystems
registered: /dev/nvme0n1p5
[    1.152327] BTRFS error (device nvme0n1p5): error allocating crc32c hash for 
checksum
[    1.1525541 BTRFS error (device nvme0n1p5): open_ctree failed: -2
ice-9/boot-9.scm: 1685:16: In procedure raise-exception:
In procedure mount: No such file or directory

Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue.
GNU Guile 3.0.9
Copyright (C) 1995-2023 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY: for details type `,show w'
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
schemed(guile-user› ,bt
In gnu/build/linux-boot.scm:
    637:8  3 (_)
    435:8  2 (mount-root-file-system "/dev/nvme0n1p5" "btrfs" # _ # _ *)
In unknown file:

           1 (mount "/dev/nvme0n1p5" "/root" "btrfs" 0 #f)
In ice-9/boot-9. scm:
  1685:16  0 (raise-exception - #:continuable? _)
scheme®(guile-user)>
```

This is the channels file I used to build the Asahi Linux installer
image which booted fine:

```
(list
 (channel
  (name 'asahi)
  (url "https://codeberg.org/asahi-guix/channel";)
  (branch "main")
  (commit "79ac6cd52fbccf88763d99a94705c7ea2d3a87f9")
  (introduction
   (make-channel-introduction
    "3eeb493b037bea44f225c4314c5556aa25aff36c"
    (openpgp-fingerprint
     "D226 A339 D8DF 4481 5DDE  0CA0 3DDA 5252 7D2A C199"))))
 (channel
  (name 'guix)
  (url "https://git.savannah.gnu.org/git/guix.git";)
  (branch "master")
  (commit "a9239a769c5611f12061c9a895e4e218b3445e2f")
  (introduction
   (make-channel-introduction
    "9edb3f66fd807b096b48283debdcddccfea34bad"
    (openpgp-fingerprint
     "BBB0 2DDF 2CEA F6A8 0D1D  E643 A2A0 6DF2 A33A 54FA")))))
```

Using those commits unfortunatly does not work locally either anymore
and I'm still trying to bisect what is causing this issue.

Since the Guix commit a9239a769c5611f12061c9a895e4e218b3445e2f
btrfs-progs was updated 2 times, and I also updated the Asahi Linux
kernel from 6.12 to 6.14.

I can mount the BTRFS partition just fine from an up to date Guix
system. Running btrfs check does not show any errors.

From what I found on the Internet it shouldn't be a problem to use a
newer btrfs-progs/Linux kernel with a partition formatted with an older
version.

I used this command to format my partition:

mkfs.btrfs -L asahi-guix-root -f /dev/nvme0n1p14

This is the issue reported by the user:

https://codeberg.org/asahi-guix/channel/issues/12

Does anyone have an idea what could be going on here?

Thanks, Roman.

Attachment: signature.asc
Description: PGP signature

Reply via email to