Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1484261
Summary: | Grub lens does not parse menu.lst with boot key | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Jaroslav Spanko <jspanko> | ||||||||
Component: | augeas | Assignee: | Pino Toscano <ptoscano> | ||||||||
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | ||||||||
Severity: | unspecified | Docs Contact: | |||||||||
Priority: | unspecified | ||||||||||
Version: | 7.4 | CC: | jspanko, xchen, yoguo | ||||||||
Target Milestone: | rc | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | augeas-1.4.0-5.el7 | Doc Type: | Bug Fix | ||||||||
Doc Text: |
Prior to this update, Augeas was not able to parse the boot key in in the GRUB 1 configuration (/boot/grub/menu.lst). The grub lens of Augeas has been fixed to parse also the boot key. As a result, Augeas now reads /boot/grub/menu.lst also with boot keys.
|
Story Points: | --- | ||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2018-04-10 09:55:26 UTC | Type: | Bug | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Bug Depends On: | |||||||||||
Bug Blocks: | 910269 | ||||||||||
Attachments: |
|
Description
Jaroslav Spanko
2017-08-23 07:03:09 UTC
Created attachment 1316963 [details]
v2v debug
Created attachment 1316964 [details]
grub.conf
I can reproduce this bug with packages: augeas-libs-1.4.0-2.el7.x86_64 augeas-1.4.0-2.el7.x86_64 Steps: 1.Enable boot line in /boot/grub/menu.lst file on rhel6.9 host. ... boot=/dev/xxx ... 2.#augtool augtool> print /files/boot/grub/menu.lst augtool> augtool> print /augeas//error ... /augeas/files/boot/grub/menu.lst/error = "parse_failed" /augeas/files/boot/grub/menu.lst/error/pos = "379" /augeas/files/boot/grub/menu.lst/error/line = "9" /augeas/files/boot/grub/menu.lst/error/char = "0" /augeas/files/boot/grub/menu.lst/error/lens = "/usr/share/augeas/lenses/dist/grub.aug:285.14-286.43:" /augeas/files/boot/grub/menu.lst/error/message = "Get did not match entire input" ... Just one note: "boot" is not a recognized key in the menu.lst file (only in the grub1 CLI). Most probably grub1 ignores unknown directives in the configuration file. Other than the unrecognized boot=device entry, apparently the Grub lens does not seem to handle the empty line (line 18 in attachment 1316964 [details]), still giving a parse error because of it.
Actually, the problem looks like the provided grub.lst has DOS-style end of line (so \r\n). Jaroslav, is this the original file from the guest, or was it manually copied&pasted from somewhere (e.g. a screen output)? OK, with Jaroslav we checked the grub configuration should be properly saved in the guest, so only the boot key is the issue. Verified with package: augeas-1.4.0-5.el7.x86_64 Steps: 1.Enable boot line in /boot/grub/menu.lst file on rhel6.9 host. ... boot=/dev/xvda ... 2.#augtool print /files/boot/grub/menu.lst ------------------------------------------------- /files/boot/grub/menu.lst /files/boot/grub/menu.lst/#comment[1] = "grub.conf generated by anaconda" /files/boot/grub/menu.lst/#comment[2] = "Note that you do not have to rerun grub after making changes to this file" /files/boot/grub/menu.lst/#comment[3] = "NOTICE: You have a /boot partition. This means that" /files/boot/grub/menu.lst/#comment[4] = "all kernel and initrd paths are relative to /boot/, eg." /files/boot/grub/menu.lst/#comment[5] = "root (hd0,0)" /files/boot/grub/menu.lst/#comment[6] = "kernel /vmlinuz-version ro root=/dev/mapper/VolGroup-lv_root" /files/boot/grub/menu.lst/#comment[7] = "initrd /initrd-[generic-]version.img" /files/boot/grub/menu.lst/boot = "/dev/xvda" ... ------------------------------------------------- Grub lens can parse menu.lst normally. So verified this bug. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:0684 |