Description of problem: grubby does not not update the arguments for all kernels when --update-kernel=ALL is used Version-Release number of selected component (if applicable): grubby-7.0.15-2.el6 (earlier and later versions show the same behaviour) How reproducible: always Steps to Reproduce: 1. cat >grubtest<<EOT default=0 timeout=5 title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64) root (hd0,0) kernel /vmlinuz-2.6.32-71.el6.x86_64 ro root=/dev/mapper/vg_rhel6-lv_root initrd /initramfs-2.6.32-71.el6.x86_64.img title Red Hat Enterprise Linux (2.6.50-71.el6.x86_64) root (hd0,0) kernel /vmlinuz-2.6.50-71.el6.x86_64 ro root=/dev/mapper/vg_rhel6-lv_root initrd /initramfs-2.6.50-71.el6.x86_64.img EOT 2. # setting an attribute initially for all kernels works grubby -c grubtest --update-kernel=ALL --args='option=0' 3. # changing the attribute now works only for the first kernel grubby -c grubtest --update-kernel=ALL --args='option=1' 4. grubby -c grubtest --info=ALL|grep ^args Actual results: args="ro option=1" args="ro option=0" Expected results: args="ro option=1" args="ro option=1" Additional info:
Created attachment 493002 [details] Patch
Created attachment 493003 [details] Test patch
Verified the patch, fixes the problem
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
Test: [root@chicken ~]# cat >grubtest<<EOT > default=0 > timeout=5 > title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64) > root (hd0,0) > kernel /vmlinuz-2.6.32-71.el6.x86_64 ro root=/dev/mapper/vg_rhel6-lv_root > initrd /initramfs-2.6.32-71.el6.x86_64.img > title Red Hat Enterprise Linux (2.6.50-71.el6.x86_64) > root (hd0,0) > kernel /vmlinuz-2.6.50-71.el6.x86_64 ro root=/dev/mapper/vg_rhel6-lv_root > initrd /initramfs-2.6.50-71.el6.x86_64.img > EOT [root@chicken ~]# grubby -c grubtest --update-kernel=ALL --args='option=0' [root@chicken ~]# grubby -c grubtest --update-kernel=ALL --args='option=1' [root@chicken ~]# grubby -c grubtest --info=ALL|grep ^args Results with RHEL-5.7 (mkinitrd-5.1.19.6-71.el5): args="ro option=1" args="ro option=0" Correct results with RHEL-5.8 Snapshot 2 (mkinitrd-5.1.19.6-75.el5): args="ro option=1" args="ro option=1" Moving to VERIFIED
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. http://rhn.redhat.com/errata/RHBA-2012-0157.html