<html><head></head><body>Wouldn't the grep for GRUB_CMDLINE_LINUX also return the one ending in _DEFAULT? <br><br><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><br><br>:-)<br><br>I do like the script. It even has comments that are usable. All it needs is <blink> :-)<br><br><br><br><div class="gmail_quote">On December 11, 2018 10:07:37 PM EST, Raj Wurttemberg via Ale <ale@ale.org> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">I created this short bash script to safely modify the /etc/default/grub<br>file.<br><br><a href="https://github.com/ZappedC64/grubdefmod">https://github.com/ZappedC64/grubdefmod</a><br><br>I've only been doing bash scripting for a short time so apologies in advance<br>for any weirdness the long-time *NIX scripters/users might notice. :) I am<br>sure that the script could be much more simple but the guys I work with<br>don't script and I have to have a lot of text output or they start asking<br>questions...<br><br>/Raj<br><br>-----Original Message-----<br>From: Derek Atkins <warlord@MIT.EDU> <br>Sent: Tuesday, December 11, 2018 7:22 PM<br>To: Jim Kinney via Ale <ale@ale.org><br>Cc: Raj Wurttemberg <rajaw@c64.us>; Jim Kinney <jim.kinney@gmail.com><br>Subject: Re: [ale] Grubby and /etc/default/grub...<br><br>Jim Kinney via Ale <ale@ale.org> writes:<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> I don't think grubby modifies /etc/default/grub<br><br> It only changes the (specified|running) kernel grub(2) boot line.<br></blockquote><br>Exactly.  What you SHOULD have done is change /etc/default/grub and then<br>just run grubby without the arguments.<br><br>-derek<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> On Mon, 2018-12-10 at 10:29 -0500, Raj Wurttemberg via Ale wrote:<br><br>     This behavior might be by design but here is what I discovered this<br></blockquote>morning.<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"><br>     I needed to disable transparent huge pages on a RHEL7.6 server (SAP<br></blockquote>HANA).<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;">     <br>     No problem, I run:<br><br>     # grubby --args "transparent_hugepage=never" --update-kernel=ALL<br><br>     I check that it's there with:<br><br>     # grubby --info=ALL<br><br>     I see that it's there:<br><br>     args="ro crashkernel=auto elevator=noop transparent_hugepage=never"<br><br>     I check /etc/default/grub and I see this:<br><br>     GRUB_CMDLINE_LINUX="crashkernel=auto rhgb quiet"<br><br>     That's not right!  I know that I can modify the /etc/default/grub <br> file and<br>     <br>     run '# grub2-mkconfig -o /boot/grub2/grub.cfg' but what's the <br> point of<br>     <br>     grubby then?<br><br>     Thanks,<br>     <br>     /Raj<hr>     Ale mailing list<br>     <br>     Ale@ale.org<br>     <br>     <a href="https://mail.ale.org/mailman/listinfo/ale">https://mail.ale.org/mailman/listinfo/ale</a><br>     <br>     See JOBS, ANNOUNCE and SCHOOLS lists at<br>     <br>     <a href="http://mail.ale.org/mailman/listinfo">http://mail.ale.org/mailman/listinfo</a><br></blockquote></pre></blockquote></div><br>-- <br>Sent from my Android device with K-9 Mail. All tyopes are thumb related and reflect authenticity.</body></html>