Hi all !
I have three Silverblue deployments
$ rpm-ostree status
State: idle
Deployments:
● ostree://fedora:fedora/34/x86_64/silverblue
Version: 34.20210423.n.0 (2021-04-23T08:10:25Z)
ostree://fedora:fedora/34/x86_64/silverblue
Version: 34.20210423.n.0 (2021-04-23T08:10:25Z)
ostree://fedora:fedora/34/x86_64/silverblue
Version: 34.20210423.n.0 (2021-04-23T08:10:25Z)
They match the three ostree entries
$ sudo tree /boot/loader
/boot/loader
├── entries
│ ├── ostree-1-fedora.conf
│ ├── ostree-2-fedora.conf
│ └── ostree-3-fedora.conf
Thus using blscfg , as I understand it, I should have the corresponding GRUB2 menuentries:
menuentry 'Fedora 34.20210423.n.0 (Silverblue) (ostree:0)'
menuentry 'Fedora 34.20210423.n.0 (Silverblue) (ostree:1)'
menuentry 'Fedora 34.20210423.n.0 (Silverblue) (ostree:2)'
So why does GRUB2 present me with 6 menuentries ? they seem doubled …
What are they for ?
Thanks
See this:
See How to delete old deployments in Silverblue - Ask Fedora
I think there might be a problem with how the grub.cfg is being generated. I see duplicated grub entries in my system, and 2 fresh VM installs:
[grub_double]
The first 2 options work, but the second set give an error if selected:
[grub_error]
I traced it back to /etc/grub.d/15_ostree generating these last 2 entries, which I think is in error? Seems like the codepath from this patch to generate the hidden file /boot/grub2/.grub2-…
And:
https://fedoraproject.org/wiki/Changes/BootLoaderSpecByDefault#Config_files_provided_by_kernel.2C_grub2-switch-to-blscfg.2C_and_zipl-switch-to-blscfg
1 Like
mystrdat
(Srall Chcavinsky)
January 27, 2023, 10:21pm
3
I have the same issue, it should be solved by the bootupd
migration. Changes/FedoraSilverblueBootupd - Fedora Project Wiki
Relevant issue: Use bootupd and remove ostree-grub2 (was: All deployments are shown twice in grub) · Issue #120 · fedora-silverblue/issue-tracker · GitHub
Running sudo grub2-switch-to-blscfg
migrated the grub config and removed the duplicate entries for me on Silverblue 37 (installed as 36). I’d imagine new installs from 38 up won’t have this issue anymore.
1 Like
Running sudo grub2-switch-to-blscfg
did not work for me on Kinoite 37. I get an error
/usr/bin/grub2-editenv: error: invalid environment block.
mystrdat
(Srall Chcavinsky)
January 29, 2023, 4:46am
5
1 Like