root ip-10-0-162-247 ec2-user]# cat /etc/default/grub
GRUB_CMDLINE_LINUX="crashkernel=auto console=ttyS0,115200n8 console=tty0"
Hi Gaurav,If I remember correctly, grub.cfg is not really a configuration file—contrarily to what its name might promise—but rather a shell script, with lots of commands and logic in there. You might try to parse it using Shellvars.lns, but there's no garantee that it will work at all.Cheers,RaphaëlOn Tue, Jun 16, 2015 at 1:47 AM, Gaurav Dalvi <gaurav1424 gmail com> wrote:_______________________________________________Hello,I have been truing to modify /boot/grub2/grub.cfg file using augeas. I dont think it supports grub.cfg file.I was able to take take entire parameter from /etc/default/grub file and then altering it, then executing grub2-mkconfig --ouput /boot/grub2/grub.cfg , serves the purpose. But I need more granularity when it comes parsing grub2 related files.Could you please tell me whether augeas support grub2 config files or not and if yes, could you please point me to documentation ?Thanks a lot. I appreciate your help.Awaiting your reply.
augeas-devel mailing list
augeas-devel redhat com