RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1059426 - grub lens does not handle "foreground" option
Summary: grub lens does not handle "foreground" option
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: augeas
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Dominic Cleal
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 1059383
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-29 20:27 UTC by Dominic Cleal
Modified: 2014-06-18 00:16 UTC (History)
5 users (show)

Fixed In Version: augeas-1.1.0-9.el7
Doc Type: Bug Fix
Doc Text:
Clone Of: 1059383
Environment:
Last Closed: 2014-06-13 09:38:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Dominic Cleal 2014-01-29 20:27:19 UTC
+++ This bug was initially created as a clone of Bug #1059383 +++

Description of problem:

grub lens does not handle "foreground" option

augeas-libs-1.0.0-5.el6_5.1.x86_64

How reproducible:

Always

Steps to Reproduce:
1. Add something like this to your grub conf

default=0
timeout=5
foreground=ddb434
hiddenmenu

2. Run augtool to list title entries

augtool ls /files/etc/grub.conf/title

Actual results:

You get an empty list

Expected results:

You should get the list of entries configured in grub.conf

If you comment out the "foreground" option, everything works

Additional info:

The problem is in grub lens, because it handles the "background" option, but not "foreground"

It can be fixed just adding "foreground" option to the menu_settings

--- /usr/share/augeas/lenses/dist/grub.aug.orig	2014-01-29 18:17:37.319368496 +0000
+++ /usr/share/augeas/lenses/dist/grub.aug	2014-01-29 18:18:05.762706377 +0000
@@ -140,6 +140,7 @@
                      | kw_menu_arg "splashimage"
                      | kw_menu_arg "gfxmenu"
                      | kw_menu_arg "background"
+                     | kw_menu_arg "foreground"
                      | serial
                      | terminal
                      | password_arg

It seems a quite harmless bug, but it makes virt-v2v fail when trying to migrate a VM with this option, that's how I traced this problem back to augeas...

Comment 1 Wei Shi 2014-02-07 09:01:47 UTC
Reproduced:
  augeas-libs-1.1.0-8.el7.x86_64

  Create a custom grub.conf under rhel7 will reproduce this bug.

Comment 3 Lingfei Kong 2014-02-11 09:55:42 UTC
Verify with augeas-1.1.0-9.el7

Steps to verify:
1. cp a rhel6 grub.conf file to /etc/ on rhel7
2. Add the following lines to /etc/grub.conf on rhel7:
default=0
timeout=5
foreground=ddb434
hiddenmenu

3. 
[host-a]#augtool 
augtool> ls /files/etc/grub.conf/
#comment[1] = grub.conf generated by anaconda
#comment[2] = Note that you do not have to rerun grub after making changes to this file
#comment[3] = NOTICE:  You do not have a /boot partition.  This means that
#comment[4] = all kernel and initrd paths are relative to /, eg.
#comment[5] = root (hd0,0)
#comment[6] = kernel /boot/vmlinuz-version ro root=/dev/sda1
#comment[7] = initrd /boot/initrd-[generic-]version.img
#comment[8] = boot=/dev/sda
splashimage = (hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu = (none)
default = 0
timeout = 5
foreground = ddb434
title[1]/ = Red Hat Enterprise Linux Server (2.6.32-431.6.1.el6.x86_64)
title[2]/ = Red Hat Enterprise Linux Server (2.6.32-431.3.1.el6.x86_64)
title[3]/ = Red Hat Enterprise Linux (2.6.32-431.1.2.el6.x86_64)
augtool> 


So, bug is fixed.

Comment 4 Ludek Smid 2014-06-13 09:38:37 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


Note You need to log in before you can comment on or make changes to this bug.