Tomas Volf wrote 1 months ago
(address . bug-guix@gnu.org)
For some reason the generated configuration by `guix system deploy'
differs from the one generated by `guix system delete-generations'. The
one from `delete-generations' is missing the extra-initrd, interfering
with the boot of the system.
From `guix deploy':
Toggle snippet (6 lines)
menuentry "GNU with Linux 6.12.11" {
[..]
initrd /disk/key.cpio /gnu/store/id8k7j24c4ijxiw1pgfsp0pg2ws52wkd-combined-initrd/initrd.img
}
From `guix system delete-generations':
Toggle snippet (6 lines)
menuentry "GNU with Linux 6.12.11 (#42, 2025-01-27 11:54)" {
[..]
initrd /gnu/store/id8k7j24c4ijxiw1pgfsp0pg2ws52wkd-combined-initrd/initrd.img
}
Ignoring that the menuentries are differently named (which is bit weird,
but does not really matter), notice that the `initrd' lines differ.
Reproduction is simple:
0. Configure system with bootloader with extra-initrd configured.
1. Run `guix deploy' few times.
2. Look at first menuentry in /boot/grub/grub.cfg.
3. Run `guix system delete-generation $OLDEST'.
4. Compare first menuentry in /boot/grub/grub.cfg to step 2.
--> Notice the differences (name, initrd, ...).
5. Run `guix deploy' once more.
--> Notice it got fixed again.
Workaround is to always run `guix deploy' once more after deleting
generations, even if there is nothing to deploy. It will still
regenerate the grub.cfg, fixing things up.
But it would be great if it "just worked".
Have a nice day,
Tomas
--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
-----BEGIN PGP SIGNATURE-----
iQJCBAEBCgAsFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmeXeBYOHH5Ad29sZnNk
ZW4uY3oACgkQL7/ufbZ/wamBdg/+JFC6tpHjumJhYRYdwWK0d/2nd4kws9rjUNpX
jKm10JqpCyaXduiVRsRKpHzIRFoWeOyU9VB/zNp7t83mV/te6gssmMzXD7EYTvbr
YygK/lADrt8L3V0yqJWAkAetSpBplefmiU5k1TlH6v3mBt63lWPyUayoA+f6aj5B
Vv2UXBW+JNH/iQmyq6VlHr0+w9ph+tD5I+J4vBTnCM2jkEhjcSFVEBXyatXgoIBG
Xea92aqpkTvMylfhqXbK+FnbdX5AShv8yK73uPGSUHfCWDSmgKhjoX/FiiFOr5C+
MbFsJwtDwCkr1MQaQgR4SwILCIoh55qRvam1veGU/kloZy4XJEWA/cDX0tMpsBmK
LZJn35VrwaG3d+/Rl+pV4tUOeZW5iVn8xGxu8Qi4mC3uLd1v9w1GfSBRcoP3ptr+
9m6cvrWEpE8zC8PV+AvzCDZb21Px7bZbUpaW3J07Xbbqv+MbZj8FXDyFvUGmfIVk
HdYBAsouUzEV9o6iiinOLRAvbOWQydUYPS0lQs8g1lH/mvsGuzWOTVw/uH0eLP3G
k6RXFijLeKP4/lBundP8CUenUgLagZbkXqB9VBtnZcB0Lg9r6PUVP2q1e46nJK9d
pWW0grdwcZISWkscS6GnT0ndBZ53XTNmBFzA+sg49du4gSUrASyogO1YVEAUkuI4
9xgm1DU=
=QBJC
-----END PGP SIGNATURE-----