[Mageia-discuss] Bug or Feature?

imnotpc imnotpc at Rock3d.net
Sat Apr 7 20:10:58 CEST 2012


On 04/07/2012 02:07 PM, Thomas Backlund wrote:
> 07.04.2012 20:59, imnotpc skrev:
>> On 04/07/2012 12:43 PM, Wolfgang Bornath wrote:
>>> 2012/4/7 imnotpc<imnotpc at rock3d.net>:
>>>> On 04/07/2012 09:35 AM, Frank Griffin wrote:
>>>>> On 04/07/2012 08:51 AM, imnotpc wrote:
>>>>>> I just discovered that when a new kernel package is installed the grub
>>>>>> menu entry is added to the bottom rather than the top. The result is that
>>>>>> the original kernel remains the default and new kernels not used. Most of my
>>>>>> systems are only accessed through ssh so I had no idea the new kernels
>>>>>> weren't being used and this only came to my attention today when another
>>>>>> update, probably dbus, broke the old kernel and hung all my boxes during
>>>>>> reboot.
>>>>>>
>>>>>> I would think that if you install an update the expectation is that it
>>>>>> would be used by default. I haven't had time to check yet, but this may also
>>>>>> be the cause of other bugs I've been having. Is this a bug or intended
>>>>>> behavior?
>>>>>>
>>>>> Not so.  The default uses the symlinks for vmlinuz and initrd which are
>>>>> version-independent, and the kernel install redefines them to point to the
>>>>> new kernel.  The entry tacked on to the end uses the new versoins by name,
>>>>> and is there so that after the next new kernel comes along you'll have an
>>>>> entry to boot this one if you need to.
>>>> So the first and last menu entry are the same most recent version? Then this
>>>> is probably a bug since the symlink entry won't boot but the entry at the
>>>> bottom that lists the version by name boots fine.
>>> Then something went wrong during installation of the new kernel. Could
>>> you please show the output of
>>>
>>> $ ls -l /boot
>>>
>> I don't think it effects this output, but just so you know I deleted
>> most of the unused entries from the grub menu and moved the most recent
>> version to the top so it would boot again if there was a power failure.
>> The curious thing is I expected vmlinuz-3.3.1-desktop-1.mga2 to be here
>> but it isn't. This box has received every update that has come out.
>>
>> [root at Cedar1 jalaramie]# ls -l /boot
>> total 20792
>> -rw-r--r-- 1 root root     440 Apr  7 08:14 boot.backup.sda
>> lrwxrwxrwx 1 root root      27 Apr  7 08:17 config ->
>> config-3.3.1-desktop-2.mga2
>> -rw-r--r-- 1 root root  135041 Feb 16 09:36 config-3.2.6-desktop-3.mga2
>> -rw-r--r-- 1 root root  136931 Apr  4 06:15 config-3.3.1-desktop-2.mga2
>> drwxr-xr-x 2 root root    4096 Mar 21 19:03 dracut/
>> -rwxr-xr-x 1 root root  537088 Apr  3 14:22 gfxmenu*
>> drwxr-xr-x 2 root root    4096 Apr  7 08:14 grub/
>> -rw-r--r-- 1 root root 5715971 Apr  3 14:22 initrd-3.2.6-desktop-3.mga2.img
>> -rw-r--r-- 1 root root 5733762 Apr  5 07:32 initrd-3.3.1-desktop-2.mga2.img
>> lrwxrwxrwx 1 root root      31 Apr  5 07:32 initrd-desktop.img ->
>> initrd-3.3.1-desktop-2.mga2.img
> You are missing the symlink initrd.img ->  initrd-3.3.1-desktop-2.mga2.img
>
> that is used on default setups...
>
> --
> Thomas

I found this in the system log for this box:

Apr  5 07:31:32 Cedar1 bootloader-config[12407]: HDIO_GETGEO on /dev/sda succeeded: heads=255 sectors=63 cylinders=9729 start=0
Apr  5 07:31:32 Cedar1 bootloader-config[12407]: id2hd: 0x0007920f=>sda
Apr  5 07:31:32 Cedar1 bootloader-config[12407]: id2edd: 0x0007920f=>/sys/firmware/edd/int13_dev80
Apr  5 07:31:32 Cedar1 bootloader-config[12407]: geometry_from_edd sda 0x0007920f: 9729/255/63
Apr  5 07:31:32 Cedar1 bootloader-config[12407]: test_for_bad_drives(/dev/sda on sector #62)
Apr  5 07:31:32 Cedar1 bootloader-config[12407]: running: blkid -o udev -p /dev/sda
Apr  5 07:31:32 Cedar1 bootloader-config[12407]: running: blkid -o udev -p /dev/sda
Apr  5 07:31:32 Cedar1 bootloader-config[12407]: found a dos partition table on /dev/sda at sector 0
Apr  5 07:31:32 Cedar1 bootloader-config[12407]: guess_geometry_from_partition_table sda: 9729/255/63
Apr  5 07:31:32 Cedar1 bootloader-config[12407]: running: blkid -o udev -p /dev/sda1
Apr  5 07:31:33 Cedar1 bootloader-config[12407]: blkid gave: swap 9b788175-efe0-41a6-8220-8c3e4b7e0dd4
Apr  5 07:31:33 Cedar1 bootloader-config[12407]: running: blkid -o udev -p /dev/sda5
Apr  5 07:31:33 Cedar1 bootloader-config[12407]: blkid gave: ext4 3d52f62b-fb08-4018-b0e5-5c792022be76
Apr  5 07:31:33 Cedar1 bootloader-config[12407]: running: blkid -o udev -p /dev/sda6
Apr  5 07:31:33 Cedar1 bootloader-config[12407]: blkid gave: ext4 143f3efc-a8da-4470-819e-94b6d1342ef2
Apr  5 07:31:34 Cedar1 bootloader-config[12407]: perImageAppend is now splash quiet resume=UUID=9b788175-efe0-41a6-8220-8c3e4b7e0dd4
Apr  5 07:31:34 Cedar1 bootloader-config[12407]: adding /boot/vmlinuz-3.3.1-desktop-2.mga2
Apr  5 07:31:34 Cedar1 bootloader-config[12407]: running: mkinitrd -f /boot/initrd-3.3.1-desktop-2.mga2.img 3.3.1-desktop-2.mga2
Apr  5 07:32:00 Cedar1 bootloader-config[12407]: running: /usr/share/bootsplash/scripts/make-boot-splash /boot/initrd-3.3.1-desktop-2.mga2.img 800
Apr  5 07:32:10 Cedar1 bootloader-config[12407]: ERROR: /boot/initrd.img is not a symbolic link
Apr  5 07:32:10 Cedar1 bootloader-config[12407]: replacing /boot/vmlinuz with /boot/vmlinuz-3.3.1-desktop-1.mga2 for bootloader label linux
Apr  5 07:32:10 Cedar1 bootloader-config[12407]: entries linux do not have same kernel_or_dev: /boot/vmlinuz-3.3.1-desktop-1.mga2 ne /boot/vmlinuz
Apr  5 07:32:10 Cedar1 bootloader-config[12407]: entries desktop 3.3.1-1.mga2 do not have same initrd: /boot/initrd-3.3.1-desktop-1.mga2.img ne /boot/initrd.img
Apr  5 07:32:10 Cedar1 bootloader-config[12407]: current labels: linux linux-nonfb failsafe desktop 3.2.6-3.mga2 desktop 3.3.1-1.mga2 alt_desktop 3.3.1-1.mga2
Apr  5 07:32:10 Cedar1 bootloader-config[12407]: adding /boot/vmlinuz-3.3.1-desktop-2.mga2
Apr  5 07:32:10 Cedar1 bootloader-config[12407]: current labels: linux linux-nonfb failsafe desktop 3.2.6-3.mga2 desktop 3.3.1-1.mga2 alt_desktop 3.3.1-1.mga2 desktop 3.3.1-2.mga2
Apr  5 07:32:10 Cedar1 bootloader-config[12407]: writing grub config to /boot/grub/menu.lst




More information about the Mageia-discuss mailing list