Greetings! This is my first contribution, so please let me know if there is anything I should be doing differently. I am following the instructions found here: <https://wiki.centos.org/Contribute>. Your /FirstnameLastname/ username: MitchellRoe The proposed subject of your Wiki contribution(s): Corrected path for getting menu entries The proposed location of your Wiki contribution(s): In <https://wiki.centos.org/HowTos/Grub2>, in section 2 titled "2. How to Define the Default Entries", in the first code block, the command given is: #+BEGIN_EXAMPLE awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg #+END_EXAMPLE I propose it should be the following: #+BEGIN_EXAMPLE awk -F\' '$1=="menuentry "{print i++ " : " $2}' /boot/grub2/grub.cfg #+END_EXAMPLE Thanks for the helpful guides. I look forward to contributing more in the future! -- Mitchell Roe (he/him/his) mitchell.roe at member.fsf.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos-docs/attachments/20190806/4513bb39/attachment-0002.html>
On Tue, Aug 6, 2019 at 4:52 AM Mitchell Roe <mitchell.roe at member.fsf.org> wrote:> > Greetings! > > This is my first contribution, so please let me know if there is anything I should be doing differently. I am following the instructions found here: https://wiki.centos.org/Contribute. > > Your FirstnameLastname username: MitchellRoe > > The proposed subject of your Wiki contribution(s): Corrected path for getting menu entries > > The proposed location of your Wiki contribution(s): In https://wiki.centos.org/HowTos/Grub2, in section 2 titled "2. How to Define the Default Entries", in the first code block, the command given is: > > awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg > > I propose it should be the following: > > awk -F\' '$1=="menuentry "{print i++ " : " $2}' /boot/grub2/grub.cfg > > Thanks for the helpful guides. I look forward to contributing more in the future! > > -- Mitchell Roe (he/him/his) mitchell.roe at member.fsf.orgThank you for the suggestion. After discussing this with the original author of the article, the following description taken from the RHEL documentation has been added: "The file name /etc/grub2.cfg is a symbolic link to the grub.cfg file, whose location is architecture dependent. It is better to use absolute paths when accessing to a file, as in the example above, especially when repairing a system." Akemi
Reasonably Related Threads
- BUG: emacs orgmode ob-R.el function org-babel-R-evaluate-session over aggressively performs "; ; cleanup extra prompts left in output" and a possible workaround
- PyGrub And Grub2 Submenus
- Using memdisk with grub2 and a compressed iso
- memdisk - grub2
- Hiding a grub menuentry?