Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Comments on Adding new entries to Grub with alternate kernel parameters

Post

Adding new entries to Grub with alternate kernel parameters

+3
−0

I installed Grub in the normal way and now I have entries in the Grub menu for linux, linux-lts, and the fallback versions of them.

I want to add more entries to this. For example, I want to add linux-lts nomodeset that is the same as linux-lts but without nvidia-drm.modeset=1.

Do I have to manually edit /boot/grub/grub.cfg for this? Or is there a more user friendly way? The syntax of grub.cfg is bad, and I fear my manual changes will get overwritten by grub-mkconfig.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

Seeing grub alone modifying grub.conf would be the only option. For more handy options it would be ne... (2 comments)
Seeing grub alone modifying grub.conf would be the only option. For more handy options it would be ne...
GeraldS‭ wrote 5 months ago

Seeing grub alone modifying grub.conf would be the only option. For more handy options it would be necessary to know which distribution you are using.

matthewsnyder‭ wrote 5 months ago · edited 5 months ago

I'm on Arch Linux. I guess I mentioned two concerns: 1) Grub will erase my manual grub.conf changes 2) The syntax of grub.conf is bad. I guess I'm actually more concerned about 2, while 1 is a minor problem. When I check my /boot/grub/grub.cfg, one of my entries is ~10 lines and looks very complex. It doesn't look like it would be fun to maintain code like that by hand. It looks like grub-mkconfig generates it from some kind of template, and what I'd really like to know is how to change that template.