Bug 829068
Summary: | grub.cfg not updated on kernel installation | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Martin Naď <martin.nad89> | ||||
Component: | grubby | Assignee: | Peter Jones <pjones> | ||||
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 17 | CC: | bcl, collura, dennis, mads, pjones, vserbine | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2012-12-16 15:13:07 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: | |||||||
Attachments: |
|
Description
Martin Naď
2012-06-05 21:32:15 UTC
system ugrade with preupgrade from f16 and I have some manual change in grub.cfg Created attachment 589650 [details]
grub.cfg
What is the output of ls -ld /etc/grub* head /etc/grub* ls -l /boot/ [root@localhost ~]# ls -ld /etc/grub* drwx------. 2 root root 4096 31. kvě 22.30 /etc/grub.d lrwxrwxrwx. 1 root root 22 31. kvě 22.26 /etc/grub2.cfg -> ../boot/grub2/grub.cfg -rw-------. 1 root root 6384 6. čen 00.21 /etc/grub2.cfg~ [root@localhost ~]# head /etc/grub2.* ==> /etc/grub2.cfg <== # # DO NOT EDIT THIS FILE # # It is automatically generated by grub2-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; then load_env ==> /etc/grub2.cfg~ <== # # DO NOT EDIT THIS FILE # # It is automatically generated by grub2-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; then load_env [root@localhost ~]# ls -l /boot/ celkem 57192 -rw-r--r--. 1 root root 115168 22. kvě 00.38 config-3.3.7-1.fc17.x86_64 -rw-r--r--. 1 root root 116633 3. čen 08.52 config-3.4.0-1.fc17.x86_64 -rw-r--r--. 1 root root 116633 4. čen 22.23 config-3.4.1-1.fc17.x86_64 drwxr-xr-x. 2 root root 4096 31. kvě 22.19 grub drwxr-xr-x. 6 root root 4096 5. čen 23.15 grub2 -rw-r--r--. 1 root root 4668955 31. kvě 21.50 initramfs-3.3.7-1.fc17.x86_64.img -rw-r--r--. 1 root root 16058773 5. čen 23.11 initramfs-3.4.0-1.fc17.x86_64.img -rw-r--r--. 1 root root 16058446 5. čen 23.15 initramfs-3.4.1-1.fc17.x86_64.img drwx------. 2 root root 16384 31. kvě 22.02 lost+found -rw-------. 1 root root 2412800 22. kvě 00.38 System.map-3.3.7-1.fc17.x86_64 -rw-------. 1 root root 2440351 3. čen 08.52 System.map-3.4.0-1.fc17.x86_64 -rw-------. 1 root root 2440289 4. čen 22.23 System.map-3.4.1-1.fc17.x86_64 -rwxr-xr-x. 1 root root 4664016 22. kvě 00.38 vmlinuz-3.3.7-1.fc17.x86_64 -rwxr-xr-x. 1 root root 4710864 3. čen 08.52 vmlinuz-3.4.0-1.fc17.x86_64 -rwxr-xr-x. 1 root root 4710736 4. čen 22.23 vmlinuz-3.4.1-1.fc17.x86_64 What do you get from /sbin/new-kernel-pkg --package kernel-PAE --install 3.4.0-1.fc17.x86_64 -v [root@localhost ~]# /sbin/new-kernel-pkg --package kernel-PAE --install 3.4.0-1.fc17.x86_64 -v initrdfile is /boot/initrd-3.4.0-1.fc17.x86_64.img /etc/grub.conf does not exist, not running grubby for grub 0.97 adding 3.4.0-1.fc17.x86_64 to /boot/grub2/grub.cfg /etc/grub2-efi.cfg does not exist, not running grubby for grub 2 with UEFI /etc/lilo.conf does not exist, not running grubby /etc/extlinux.conf does not exist, not running grubby for extlinux [root@localhost ~]# /sbin/new-kernel-pkg --package kernel --install 3.4.0-1.fc17.x86_64 -v initrdfile is /boot/initrd-3.4.0-1.fc17.x86_64.img making it the default based on config /etc/grub.conf does not exist, not running grubby for grub 0.97 adding 3.4.0-1.fc17.x86_64 to /boot/grub2/grub.cfg /etc/grub2-efi.cfg does not exist, not running grubby for grub 2 with UEFI /etc/lilo.conf does not exist, not running grubby /etc/extlinux.conf does not exist, not running grubby for extlinux Right; the -PAE was a cut'n'paste error. That new-kernel-pkg command must be the one that caused the 'fatal' error and failed to update grub.cfg when the kernel was installed. Now it says it succeeded. Did it? Do you have a (partial and probably not yet fully working) entry in grub.cfg? Can you try to reproduce the problem. rpm -e kernel-3.4.1-1.fc17.x86_64 - and verify that it removed the grub.cfg entry LANG=C yum update - and verify that it installs the kernel again and see if that reproduce the problem. Hi, Sorry for long delay, Now I cant reproduce, works ok. |