[ale] Grubby and /etc/default/grub...
Jim Kinney
jim.kinney at gmail.com
Wed Dec 12 08:10:49 EST 2018
Wouldn't the grep for GRUB_CMDLINE_LINUX also return the one ending in _DEFAULT?
<snark> If the coworkers don't understand "edit the /etc/default/grub file to add the required kernel boot parameters", 1) maybe they shouldn't have admin privileges, 2) maybe the script should only list the existing boot params followed by contact info for someone with skills to modify if needed. </snark>
:-)
I do like the script. It even has comments that are usable. All it needs is <blink> :-)
On December 11, 2018 10:07:37 PM EST, Raj Wurttemberg via Ale <ale at ale.org> wrote:
>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
>
>_______________________________________________
>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
--
Sent from my Android device with K-9 Mail. All tyopes are thumb related and reflect authenticity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.ale.org/pipermail/ale/attachments/20181212/21f85bd6/attachment.html>
More information about the Ale
mailing list