I have also run into this bug. It initially manifested itself as an empty boot
parameters file causing guix system errors:
`guix system: error: unrecognized boot parameters at
'/var/guix/profiles/system/parameters'"`
Roll backs and generation switches were no longer possible due to the current
system profile being in a broken state.
It is still possible to boot into an older generation.
Can confirm that manually activating an older generation per:
`sudo guile -s /var/guix/profiles/system-XX-link/activate`
With a rw remount of `/` to manually set the current system profile link to
that profile will get you back into a state that lets you delete the offending
generation using `guix system delete-generation`.
Curiously, my latest working generation is where the faulty system generation
was configured from. I am still seeing intermittent generation of e.g. empty
`.drv` files on this generation:
guix system describe:
...
Generation 33 Mar 04 2025 23:02:24 (current)
file name: /var/guix/profiles/system-33-link
canonical file name: /gnu/store/qszg286n66l3gwjipvzg0nhswz7pv996-system
label: GNU with Linux 6.12.13
bootloader: grub-efi
root device: /dev/mapper/system-root
kernel: /gnu/store/gz7w72cj3icm58zj9vs6vvvs6khcqzil-linux-6.12.13/bzImage
channels:
...
guix:
repository URL: https://git.savannah.gnu.org/git/guix.git
branch: master
commit: 8bc831325a905dbd9015739b58e3a5138d2217da
configuration file:
/gnu/store/45gp6why4xgkxxxl1cs2v7nkf1fxrmag-configuration.scm
...
uname -a:
...
Linux thinkpad 6.12.13 #1 SMP PREEMPT_DYNAMIC 1 x86_64 GNU/Linux
e.g. this is a configuration that deploys cleanly on another system but from
this generation I get (inconsistent/intermittent) empty drv files:
...
Reconfiguring system ...
guix system: error: error parsing derivation
`/gnu/store/f2xi0b47yvgb4h8b92hlj7xmaqairidq-shepherd-nftables.go.drv':
expected string `Derive(['
λ ~ › cat /gnu/store/f2xi0b47yvgb4h8b92hlj7xmaqairidq-shepherd-nftables.go.drv
λ ~ › ls -alrt
/gnu/store/f2xi0b47yvgb4h8b92hlj7xmaqairidq-shepherd-nftables.go.drv
-r--r--r-- 1 root root 0 Dec 31 1969
/gnu/store/f2xi0b47yvgb4h8b92hlj7xmaqairidq-shepherd-nftables.go.drv
λ ~ ›
```
Kind regards,
Bas