Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
+++ 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...
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.
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.