Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 382003 - sys-boot/grub: grub2-config should read GRUB_CMDLINE_LINUX_DEFAULT from /proc/cmdline
Summary: sys-boot/grub: grub2-config should read GRUB_CMDLINE_LINUX_DEFAULT from /proc...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Tomáš Chvátal (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-06 02:21 UTC by yegle
Modified: 2011-09-06 12:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yegle 2011-09-06 02:21:10 UTC
sys-apps/systemd requires manual edit of /boot/grub/grub.cfg to add "init=/bin/systemd". But each time grub2-config may overwrite my manual edit.

It would be great to add an option to grub2-config to read default kernel options from /proc/cmdline
Comment 1 Tomáš Chvátal (RETIRED) gentoo-dev 2011-09-06 09:14:02 UTC
But why, if you want to alter the cmdline just set it at

/etc/default/grub

The same way i set my setup there:

GRUB_CMDLINE_LINUX="rootfslinux=ext4 dolvm"

Why should it automagically read from /proc/cmdline...

I am inclined to close this as wontfix, because you have quite convenient and correct way how to set this. But feel free to convince me that writing the entry to the above file is lame.
Comment 2 yegle 2011-09-06 11:02:26 UTC
Well, this options is a bit like kernel's "make oldconfig" option.

But you are right, for my issue, I can just edit /etc/default/grub. So Please mark it WONTFIX :-)
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2011-09-06 12:13:00 UTC
The problem with this being automatically detected is that you might have booted kernel you don't want the opitons from.

Thats why it explicitly wants YOU as user to mess with it, and take all the blame for messed configuration :P

Closing as per above.