Remove protected grub2-*

Hi

Is it possible to remove all protected grub2-*?
I am using a custom boot loader and I am tired of all these messages after an update:

>>> Running post-transaction scriptlet: grub2-common-1:2.12-21.fc41.noarch                                                        
>>> Non-critical error in post-transaction scriptlet: grub2-common-1:2.12-21.fc41.noarch                                          
>>> Scriptlet output:                                                                                                             
>>> Generating grub configuration file ...                                                                                        
>>> /usr/sbin/grub2-probe: error: ../grub-core/kern/fs.c:123:unknown filesystem.                                                  
>>>                                                                                                                               
>>> [RPM] %posttrans(grub2-common-1:2.12-21.fc41.noarch) scriptlet failed, exit status 1

Proceed at your own risk:

sudo dnf remove grub\* --setopt=protected_packages=
2 Likes

Thanks!

Will this somehow negatively affect future kernel or other libs upgrades?
Thanks

1 Like

It should not, otherwise you are welcome to open an issue on the Fedora bug tracker.

1 Like