Bazzite 41 No longer has /etc/default/grub

I am unable to add the required line to change my grub theme due to /etc/default/grub not existing and no one in the chat room seems to believe me that the file is nonexistent.
No description
No description
Solution:
then create it
Jump to solution
12 Replies
termdisc
termdisc•4w ago
what's stopping you from just creating it?
matrix1999
matrix1999•4w ago
Yes I have been wanting to know this as well. There is no /etc/default/grub to be found
BlazinLinux
BlazinLinuxOP•4w ago
apparently we are imaging it 😛 I asked several times in chat and all I keep getting is a link to a guide on editing the file that I keep saying doesn't exist to begin with to edit
Solution
termdisc
termdisc•4w ago
then create it
termdisc
termdisc•4w ago
the answer to a missing file that needs to be edited is simply create the file the nano screenshot in the OP is 90% of the solution. you just save it when you're done
BlazinLinux
BlazinLinuxOP•4w ago
ah ok so yes although now the file is totally missing you can just create a /etc/default/grub file I simply added only the one line GRUB_THEME=/boot/grub2/themes/NeonPurple/theme.txt saved it and done a ujust regenerate-grub and it finally worked. The problem is the file /etc/default/grub used to exist and was full of stuff but now with it gone you just have to make the file yourself and only put in what you want.
matrix1999
matrix1999•4w ago
so if I hear you correctly, there was originally a /etc/default/grub somewhere but once you have activated it, it then disappear? ok creating a /etc/default/grub seems to solve part of my problem. But now I get duplicate entries for ostree:0 and ostree:1. How can I fix that? Interestingly enough the duplicate entries doesn't load Bazzite, only the first two (ostree:0 and 1) work.
SilverNO3
SilverNO3•3w ago
I'm struggling with copying themes in the /boot/grub2/themes/ folder as it is an inaccessible path. Any luck/tricks?
wolfyreload
wolfyreload•3w ago
you can use the command ujust configure-grub fix to get rid of the duplicate entries
matrix1999
matrix1999•3w ago
Tyvm!!
termdisc
termdisc•3w ago
iirc, you need to be running as root to get access to that folder.
SilverNO3
SilverNO3•2w ago
Thanks! I found out that I had incorrectly copied the folder when I did sudo cp... . The more proper question was probably "how do I verify/see the contents of /boot/grub2/themes?" There, sudo cd does not work. Some googling finally led me to sudo su and then cd-ing and ls-ing as appropriate. That was how I finally found how I had incorrectly copied. Thank you for the hint! Got it working! (Initially, it appears that old installs should still follow the old community guide instead of following what new installs after Fedora Silverblue 41 should do with creating/editing a user.cfg)
Want results from more Discord servers?
Add your server