[ale] Grubby and /etc/default/grub...

Raj Wurttemberg rajaw at c64.us
Tue Dec 11 22:07:37 EST 2018


I created this short bash script to safely modify the /etc/default/grub
file.

https://github.com/ZappedC64/grubdefmod

I've only been doing bash scripting for a short time so apologies in advance
for any weirdness the long-time *NIX scripters/users might notice. :) I am
sure that the script could be much more simple but the guys I work with
don't script and I have to have a lot of text output or they start asking
questions...

/Raj

-----Original Message-----
From: Derek Atkins <warlord at MIT.EDU> 
Sent: Tuesday, December 11, 2018 7:22 PM
To: Jim Kinney via Ale <ale at ale.org>
Cc: Raj Wurttemberg <rajaw at c64.us>; Jim Kinney <jim.kinney at gmail.com>
Subject: Re: [ale] Grubby and /etc/default/grub...

Jim Kinney via Ale <ale at ale.org> writes:

> I don't think grubby modifies /etc/default/grub
>
> It only changes the (specified|running) kernel grub(2) boot line.

Exactly.  What you SHOULD have done is change /etc/default/grub and then
just run grubby without the arguments.

-derek

> On Mon, 2018-12-10 at 10:29 -0500, Raj Wurttemberg via Ale wrote:
>
>     This behavior might be by design but here is what I discovered this
morning.
>
>     I needed to disable transparent huge pages on a RHEL7.6 server (SAP
HANA).
>     
>     No problem, I run:
>
>     # grubby --args "transparent_hugepage=never" --update-kernel=ALL
>
>     I check that it's there with:
>
>     # grubby --info=ALL
>
>     I see that it's there:
>
>     args="ro crashkernel=auto elevator=noop transparent_hugepage=never"
>
>     I check /etc/default/grub and I see this:
>
>     GRUB_CMDLINE_LINUX="crashkernel=auto rhgb quiet"
>
>     That's not right!  I know that I can modify the /etc/default/grub 
> file and
>     
>     run '# grub2-mkconfig -o /boot/grub2/grub.cfg' but what's the 
> point of
>     
>     grubby then?
>
>     Thanks,
>     
>     /Raj
>
>     _______________________________________________
>     
>     Ale mailing list
>     
>     Ale at ale.org
>     
>     https://mail.ale.org/mailman/listinfo/ale
>     
>     See JOBS, ANNOUNCE and SCHOOLS lists at
>     
>     http://mail.ale.org/mailman/listinfo

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available



More information about the Ale mailing list