Re: grub2-mkconfig doesn't take parameters from /etc/default/grub



On Sun, Apr 3, 2016 at 9:07 AM, Li, Chengyuan <chengyli ebay com> wrote:
Hi,



I’m using Atomic fedora 23, and try to add extra Linux cmdline parameters in
/etc/default/grub, e.g.



-GRUB_CMDLINE_LINUX="no_timer_check console=tty1 console=ttyS0,115200n8
rd.lvm.lv=atomicos/root console=ttyS1"

+GRUB_CMDLINE_LINUX="no_timer_check console=tty1 console=ttyS0,115200n8
rd.lvm.lv=atomicos/root console=ttyS1 net.ifnames=0 biosdevname=0"



Then run “grub2-mkconfig -o /boot/grub2/grub.cfg”, however the generated
grub.cfg doesn’t include the new added parameters “net.ifnames=0
biosdevname=0”. Seems that /etc/grub.d/15_ostree just reads
/boot/loader.0/entries/ostree-fedora-atomic-x.conf but doesn’t combine the
value from GRUB_CMDLINE_LINUX when generating the grub.cfg.



My question is that how could I add extra Linux kernel cmdline parameters in
grub if ostree is installed in the system too?

https://bugzilla.redhat.com/show_bug.cgi?id=1267956

But the upstream bug is closed as not a bug. So I don't know what to
make of that when user space tools fail but it's not a bug.

The work around I'm using is just make sure the all the .conf files in
/boot/loader have the change you want made already; it seems like this
is just being copied when making the .conf file for a new tree.



-- 
Chris Murphy


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]