Bug 732654 - during kernel update, grubby does not correctly update the "echo 'Loading ...' line
Summary: during kernel update, grubby does not correctly update the "echo 'Loading ......
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: grubby
Version: 18
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: RejectedNTH https://fedoraproject.org...
: 741847 743119 747542 749963 751601 751604 755706 757198 757235 757406 757437 760596 761400 766057 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-08-23 08:28 UTC by Joachim Backes
Modified: 2014-01-07 18:29 UTC (History)
33 users (show)

Fixed In Version: grubby-8.3-2.fc16
Clone Of:
Environment:
Last Closed: 2014-01-07 18:29:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
grub.cfg on affected F16 x86_64 system (always says "Loading Fedora (3.0.0-3.fc16.x86_64)") (2.55 KB, text/plain)
2011-08-26 09:09 UTC, Andre Robatino
no flags Details
loading.patch (1.22 KB, patch)
2011-09-14 14:21 UTC, Mads Kiilerich
no flags Details | Diff
updated patch that doesn't hardcode the customizable title (4.73 KB, patch)
2011-10-29 18:14 UTC, Mads Kiilerich
no flags Details | Diff

Description Joachim Backes 2011-08-23 08:28:38 UTC
Description of problem:
I updated from kernel-3.0.1-3.fc16.x86_64 to kernel-3.1.0-0.rc2.git7.2.fc16.x86_64.

But the update procedure did not update the echo line 

	echo 'Loading Fedora (3.0.1-3.fc16.x86_64)'

into 
	echo 'Loading Fedora (3.1.0-0.rc2.git7.2.fc16.x86_64)'

for the menu entry of kernel-3.1.0-0.rc2.git7.2.fc16.x86_64.

That menu entry for kernel-3.1.0-0.rc2.git7.2.fc16.x86_64 is:

menuentry 'Fedora (3.1.0-0.rc2.git7.2.fc16.x86_64)' --class fedora --class gnu-linux --class gnu --class os {
        load_video
        set gfxpayload=keep
        insmod part_msdos
        insmod ext2
        search --no-floppy --label --set=root /F16
        echo 'Loading Fedora (3.0.1-3.fc16.x86_64)'
        linux   /boot/vmlinuz-3.1.0-0.rc2.git7.2.fc16.x86_64 root=LABEL=/F16 ro rd.md=0 rd.lvm=0 rd.dm=0 quiet SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0  KEYTABLE=de-latin1-nodeadkeys LANG=en_US.UTF-8
        echo 'Loading initial ramdisk ...'
        initrd /boot/initramfs-3.1.0-0.rc2.git7.2.fc16.x86_64.img
}

and the menu entry of kernel-3.0.1-3.fc16.x86_64:

menuentry 'Fedora (3.0.1-3.fc16.x86_64)' --class fedora --class gnu-linux --class gnu --class os {
        load_video
        set gfxpayload=keep
        insmod part_msdos
        insmod ext2
        search --no-floppy --label --set=root /F16
        echo 'Loading Fedora (3.0.1-3.fc16.x86_64)'
        linux   /boot/vmlinuz-3.0.1-3.fc16.x86_64 root=LABEL=/F16 ro rd.md=0 rd.lvm=0 rd.dm=0 quiet SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0  KEYTABLE=de-latin1-nodeadkeys LANG=en_US.UTF-8
        echo 'Loading initial ramdisk ...'
        initrd /boot/initramfs-3.0.1-3.fc16.x86_64.img




Version-Release number of selected component (if applicable):
kernel-3.1.0-0.rc2.git7.2.fc16.x86_64

How reproducible:
Did not try!

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info: The newer kernel is bootetd correctly!

Comment 1 Joachim Backes 2011-08-23 12:39:30 UTC
The loading message is again correct with 3.1.0-0.rc3.git0.0.fc16.x86_64.

Comment 2 Joachim Backes 2011-08-24 06:39:22 UTC
(In reply to comment #1)
> The loading message is again correct with 3.1.0-0.rc3.git0.0.fc16.x86_64.

Please reopen the bug! It's *not correct* that is has been solved by 3.1.0-0.rc3.git0.0.fc16.x86_64.

Comment 3 Andre Robatino 2011-08-26 08:15:16 UTC
Reopened - I'm surprised Bugzilla doesn't let you reopen your own bug. Also set the Platform to "x86_64 Linux", since I can only vouch for it on x86_64, but it's likely it happens on i386 as well.

Comment 4 Andre Robatino 2011-08-26 09:09:47 UTC
Created attachment 520038 [details]
grub.cfg on affected F16 x86_64 system (always says "Loading Fedora (3.0.0-3.fc16.x86_64)")

Comment 5 Andre Robatino 2011-08-29 16:13:44 UTC
Changing the Component to grubby based on the thread http://lists.fedoraproject.org/pipermail/test/2011-August/102191.html . On Rawhide, I used "grub2-mkconfig -o /boot/grub2/grub.cfg" to recreate grub.cfg, and after installing a new kernel, it was updated correctly, so I don't know if the bug even still exists. Also ran the same command on F16 but am waiting for a kernel update to see if it works properly there as well.

Comment 6 Andre Robatino 2011-08-31 02:47:37 UTC
After the latest F16 kernel update, grubby updates correctly there as well. Anyone know if this bug is already fixed?

Comment 7 Andre Robatino 2011-08-31 14:04:47 UTC
I am now seeing the wrong echo line in Rawhide for the latest kernel, so the bug still exists. The file grub.cfg was last modified yesterday at 11:26 (local time), just before booting into the new kernel which I had just installed.

[root@localhost ~]# last -3 reboot
reboot   system boot  3.1.0-0.rc4.git0 Wed Aug 31 09:53 - 10:03  (00:09)    
reboot   system boot  3.1.0-0.rc4.git0 Tue Aug 30 11:28 - 11:36  (00:08)    
reboot   system boot  3.1.0-0.rc3.git5 Tue Aug 30 10:57 - 11:27  (00:30)    

wtmp begins Sat Aug  6 15:19:15 2011
[root@localhost ~]#

Bad section of grub.cfg:

menuentry 'Fedora (3.1.0-0.rc4.git0.0.fc17.x86_64)' --class gnu-linux --class gnu --class os {
        load_video
        set gfxpayload=keep
        insmod part_gpt
        insmod ext2
        set root='(hd0,gpt2)'
        search --no-floppy --fs-uuid --set=root 35c75285-d5e2-4ff5-a487-6a31bae0c421
        echo 'Loading Fedora (3.1.0-0.rc3.git5.0.fc17.x86_64)'
        linux   /vmlinuz-3.1.0-0.rc4.git0.0.fc17.x86_64 root=/dev/mapper/VolGroup-lv_root ro SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us
        echo 'Loading initial ramdisk ...'
        initrd /initramfs-3.1.0-0.rc4.git0.0.fc17.x86_64.img
}

Comment 8 Joachim Backes 2011-08-31 15:58:06 UTC
I can confirm this.

Comment 9 Mads Kiilerich 2011-09-14 14:21:15 UTC
Created attachment 523165 [details]
loading.patch

grub2-mkconfig will create lines like:
        echo    'Loading Linux 3.1.0-0.rc6.git0.0.fc16.x86_64 ...'

grubby will correctly recognize these lines and replace them with lines with
the right version number such as:
        echo 'Loading Fedora (3.1.0-0.rc6.git0.0.fc16.x86_64)'

these lines are however not recognized by grubby and will not be updated next
time.

We need to update all the right kinds of 'Loading' messages to the new kernel version

This patch makes sure that "'Loading Fedora " also is recognized and updated
correctly.

It could be argued that the extra parens are ugly and that grubby and mkconfig
should emit the same output, but that's a different issue. Both kinds are out
there in the wild and we have to handle both.

Comment 10 Charles R. Anderson 2011-09-20 20:56:00 UTC
I'm seeing the same issue throughout rc4, rc5, rc6 kernels.  It always  shows "Loading ..." for the previously updated kernel.  I.e. Loading rc6 echo rc5, loading rc5 echos rc4, etc.

Comment 11 Dr. Tilmann Bubeck 2011-10-12 20:03:50 UTC
This seems to be a duplicate of bugzilla #743119 or vice versa.

Comment 12 Charles R. Anderson 2011-10-12 20:25:35 UTC
Patch available in bug #743119.

*** This bug has been marked as a duplicate of bug 743119 ***

Comment 13 Andre Robatino 2011-10-17 16:31:07 UTC
Reopened since essentially exactly the same patch was already available in this bug in comment 9.

Comment 14 Andre Robatino 2011-10-17 16:32:51 UTC
*** Bug 743119 has been marked as a duplicate of this bug. ***

Comment 15 Andre Robatino 2011-10-20 15:10:48 UTC
*** Bug 747542 has been marked as a duplicate of this bug. ***

Comment 16 Adam Williamson 2011-10-21 18:29:28 UTC
Discussed at 2011-10-21 NTH review meeting. Agreed this is not an NTH issue; it has no actual practical impact and can be fixed safely with a post-release update. It doesn't affect initial install, because anaconda uses grub2-mkconfig, not grubby. This bug only happens when grubby is using an existing kernel entry as a template, which _only_ happens in post-install kernel updates.

Comment 17 Andre Robatino 2011-10-29 16:09:33 UTC
*** Bug 749963 has been marked as a duplicate of this bug. ***

Comment 18 Adam Williamson 2011-10-29 17:20:20 UTC

-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 19 Mads Kiilerich 2011-10-29 18:14:06 UTC
Created attachment 530798 [details]
updated patch that doesn't hardcode the customizable title

Update "echo 'Loading..." messages to the new kernel version

grub2-mkconfig will create lines like:
        echo    'Loading Linux 3.1.0-0.rc6.git0.0.fc16.x86_64 ...'
- depending on the content of /etc/default/grub.

grubby would recognize these lines and replace them with lines with the right
version number such as:
        echo 'Loading Fedora (3.1.0-0.rc6.git0.0.fc16.x86_64)'

these lines were however not recognized by grubby and would not be updated on
next kernel update when this entry would be used as template.

With this patch grubby will no longer look for a specific title but patch any
"echo 'Loading" line immediately before the kernel line.

Comment 20 Andre Robatino 2011-11-06 14:33:57 UTC
*** Bug 751604 has been marked as a duplicate of this bug. ***

Comment 21 Andre Robatino 2011-11-06 18:26:06 UTC
*** Bug 751601 has been marked as a duplicate of this bug. ***

Comment 22 Adam Williamson 2011-11-08 06:26:03 UTC

-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 23 Andre Robatino 2011-11-22 05:42:38 UTC
*** Bug 755706 has been marked as a duplicate of this bug. ***

Comment 24 Mads Kiilerich 2011-11-25 16:14:43 UTC
*** Bug 741847 has been marked as a duplicate of this bug. ***

Comment 25 Brian Lane 2011-11-28 18:54:46 UTC
*** Bug 757437 has been marked as a duplicate of this bug. ***

Comment 26 Brian Lane 2011-11-28 19:08:24 UTC
*** Bug 757198 has been marked as a duplicate of this bug. ***

Comment 27 Brian Lane 2011-11-28 19:09:24 UTC
*** Bug 757235 has been marked as a duplicate of this bug. ***

Comment 28 Brian Lane 2011-12-06 17:15:49 UTC
*** Bug 760596 has been marked as a duplicate of this bug. ***

Comment 29 Bill Gianopoulos 2011-12-08 00:45:44 UTC
(In reply to comment #19)
> Created attachment 530798 [details]

If there is some overriding issue with this patch, could we at least put in a
patch to just not insert the "echo Loading ...." line at all?  This way just
makes it look like the incorrect kernel is being booted which is just not a
very good thing at all.

Comment 30 Josh Boyer 2011-12-08 13:36:19 UTC
*** Bug 761400 has been marked as a duplicate of this bug. ***

Comment 31 Mads Kiilerich 2011-12-08 19:07:22 UTC
*** Bug 757406 has been marked as a duplicate of this bug. ***

Comment 32 Peter Jones 2011-12-08 19:22:52 UTC
Mads, can you attach an updated patch that's in a format "git am" will recognize?

Comment 33 Adam Williamson 2011-12-08 19:46:55 UTC
it's okay, I'll do it.



-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 34 Fedora Update System 2011-12-09 17:44:00 UTC
grubby-8.3-2.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/grubby-8.3-2.fc16

Comment 35 Fedora Update System 2011-12-10 19:57:04 UTC
Package grubby-8.3-2.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing grubby-8.3-2.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-16908/grubby-8.3-2.fc16
then log in and leave karma (feedback).

Comment 36 Bill Gianopoulos 2011-12-10 20:09:00 UTC
(In reply to comment #35)
> Package grubby-8.3-2.fc16:
> * should fix your issue,
> * was pushed to the Fedora 16 testing repository,
> * should be available at your local mirror within two days.
> Update it with:
> # su -c 'yum update --enablerepo=updates-testing grubby-8.3-2.fc16'
> as soon as you are able to.
> Please go to the following url:
> https://admin.fedoraproject.org/updates/FEDORA-2011-16908/grubby-8.3-2.fc16
> then log in and leave karma (feedback).

Do we know if there will be a kernel update soon?  Or do I need to backout the most recent kernel version and re-update the kernel in order to test this?

Comment 38 Joachim Backes 2011-12-11 08:42:24 UTC
(In reply to comment #35)
> Package grubby-8.3-2.fc16:
> * should fix your issue,
> * was pushed to the Fedora 16 testing repository,
> * should be available at your local mirror within two days.
> Update it with:
> # su -c 'yum update --enablerepo=updates-testing grubby-8.3-2.fc16'
> as soon as you are able to.
> Please go to the following url:
> https://admin.fedoraproject.org/updates/FEDORA-2011-16908/grubby-8.3-2.fc16
> then log in and leave karma (feedback).

Displays now the right echo line after updating to kernel-3.1.5-1.fc16.x86_64 and rebooting :-)

Comment 39 Andre Robatino 2011-12-11 09:00:54 UTC
*** Bug 766057 has been marked as a duplicate of this bug. ***

Comment 40 Fedora Update System 2011-12-11 21:53:01 UTC
grubby-8.3-2.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 41 Adam Williamson 2011-12-12 21:04:32 UTC
bill: they usually come along fairly frequently, but you can just do a 'yum reinstall' if you want to test it right away.



-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 42 Julian Sikorski 2012-06-10 07:49:15 UTC
This bug seems to walk the earth again in grub2-2.0-0.25.beta4.fc17.x86_64. It is translated now, so maybe this is the source of the problem:

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Fedora (3.4.0-1.fc17.x86_64)' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-67681f12-ee66-41a0-b18e-feed75f27622' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 --hint='hd0,msdos3'  ec9db239-05ec-4dd0-9f70-7ae8e00162d9
	else
	  search --no-floppy --fs-uuid --set=root ec9db239-05ec-4dd0-9f70-7ae8e00162d9
	fi
	echo 'Wczytywanie systemu Linux 3.3.7-1.fc17.x86_64...'
	linux	/vmlinuz-3.4.0-1.fc17.x86_64 root=/dev/mapper/vg_snowball2-lv_root ro rd.lvm.lv=vg_snowball2/lv_swap rd.md=0 rd.dm=0 quiet SYSFONT=latarcyrheb-sun16 rhgb rd.lvm.lv=vg_snowball2/lv_root rd.luks=0 LANG=pl_PL.UTF-8  KEYTABLE=pl2 nouveau.modeset=0 rd.driver.blacklist=nouveau
	echo 'Wczytywanie początkowego dysku RAM...'
	initrd /initramfs-3.4.0-1.fc17.x86_64.img
}

Comment 43 Eli Wapniarski 2012-06-11 09:38:57 UTC
I have the same issue.

Comment 44 Thomas Müller 2012-08-04 08:06:54 UTC
Same issue here with German localization on Fedora 17.

Just updated to the 3.5.0 kernel, but the echo-line still mentions 3.4.6.


# rpm -q grubby
grubby-8.12-1.fc17.x86_64


menuentry 'Fedora (3.5.0-2.fc17.x86_64)' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-[...]' {
        [...]
        echo 'Linux 3.4.6-2.fc17.x86_64 wird geladen …'
        linux   /vmlinuz-3.5.0-2.fc17.x86_64 root=UUID=[...]
        echo 'Initiale Ramdisk wird geladen …'
        initrd /initramfs-3.5.0-2.fc17.x86_64.img
}

Comment 45 Pavlo Rudyi 2012-08-17 15:32:35 UTC
F17, Ukrainian localization.

Updated to kernel 3.5.2, in grub.cfg:
	echo 'Завантаження Linux 3.4.4-5.fc17.x86_64…'




rpm -q grubby
#  rpm -q grubby
grubby-8.12-1.fc17.x86_64

Comment 46 Fedora End Of Life 2013-02-14 02:12:14 UTC
Fedora 16 changed to end-of-life (EOL) status on 2013-02-12. Fedora 16 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 47 Aissen 2013-04-29 11:04:54 UTC
I can confirm this problem on F18.

Comment 48 Aissen 2013-04-29 11:05:29 UTC
I can confirm this problem on F18, with a localized description.

Comment 49 Fedora End Of Life 2013-12-21 14:56:55 UTC
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '18'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior to Fedora 18's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 50 Joachim Backes 2013-12-21 17:01:43 UTC
No more such problem in F20; obviously fixed in F20


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