Bug 551642 - After upgrading from 11.1, default kernel is set to 2.6.27.29-0.1-pae (from 11.1), but fails to boot
Summary: After upgrading from 11.1, default kernel is set to 2.6.27.29-0.1-pae (from 1...
Status: RESOLVED FIXED
: 551030 554897 555829 (view as bug list)
Alias: None
Product: openSUSE 11.2
Classification: openSUSE
Component: Installation (show other bugs)
Version: RC 2
Hardware: Other openSUSE 11.2
: P2 - High : Major (vote)
Target Milestone: ---
Assignee: Stephan Kulow
QA Contact: Jiri Srain
URL:
Whiteboard: maint:released:11.2:28878
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-31 09:26 UTC by David Bailey
Modified: 2010-02-16 15:15 UTC (History)
7 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
console messages from failed boot of 2.6.27.29-0.1-pae kernel (89.96 KB, image/png)
2009-10-31 09:26 UTC, David Bailey
Details
YaST logs (982.85 KB, application/x-compressed-tar)
2009-11-01 02:22 UTC, David Bailey
Details
Yast Logs from install on IBM T61P (1.03 MB, application/zip)
2009-11-05 19:22 UTC, Forgotten User w4XUsT47_R
Details
/etc/sysconfig/bootloader from IBM T61p (1.40 KB, application/octet-stream)
2009-11-05 19:23 UTC, Forgotten User w4XUsT47_R
Details
menu.1st from IBM T61p (1.94 KB, application/octet-stream)
2009-11-05 19:23 UTC, Forgotten User w4XUsT47_R
Details
screenshot of the installation summary (93.70 KB, image/png)
2009-11-10 11:19 UTC, Michal Marek
Details
y2logs with solver testcase (1.05 MB, application/x-gzip)
2009-11-10 12:37 UTC, Michal Marek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Bailey 2009-10-31 09:26:18 UTC
Created attachment 324985 [details]
console messages from failed boot of 2.6.27.29-0.1-pae kernel

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.14) Gecko/2009090900 SUSE/3.0.14-0.1.2 Firefox/3.0.14

Upgraded an openSUSE 11.1 (VMware virtual machine) to 11.2 RC2

After the upgrade, new GRUB entries had been added for 2.6.27.29-0.1-default and desktop kernels, but the default remained at 2.6.27.29-0.1-pae from the 11.1 installation.

Attempting to boot from the default entry fails waiting for the /dev/sda2 partition to appear (the root partition).

In the /boot partition, I can see vmlinuz, initrd, system-map entries for both the new and existing kernels.  They all appear to be about the right size (when compared to other systems I have)

However the modules for the 2.6.27.29-0.1-pae kernel appear to be largely missing (presumably deleted during the upgrade)

du -sh /lib/modules/2.6.27.29-0.1-pae 
2.4M    /lib/modules/2.6.27.29-0.1-pae

However, on another 11.1 system, I get:
71M     2.6.27.29-0.1-pae

Booting from any of the new 11.2 entries appear to work OK.  However many users may not realise (as I initially didn't), that the default is actually from the previous installation.



Reproducible: Always

Steps to Reproduce:
1.Upgrade system from 11.1 to 11.2
2.Upgrade keeps kernel from previous installation as default
3.System fails to boot from default kernel entry.
Actual Results:  
Boot fails with error message
waiting for device /dev/sda2 to appear ........
Comment 1 Andreas Jaeger 2009-10-31 13:58:41 UTC
Please attach the YaST bootloader log files
(see http://en.opensuse.org/Bugs/YaST for details)
Comment 2 David Bailey 2009-11-01 02:22:18 UTC
Created attachment 325005 [details]
YaST logs

Attached YaST2 logs
Comment 3 Jozef Uhliarik 2009-11-04 09:33:40 UTC
David configuration of GRUB is valid and IMHO correct. It can happen that I didn't catch something but from my point of view it is OK. It seems that problem will be in initrd.

Josef could you look at it again please? I hope that I didn't forget anything but IMHO the bug is a candidate for Milan or Michal.
Comment 4 Jozef Uhliarik 2009-11-05 15:43:15 UTC
*** Bug 551030 has been marked as a duplicate of this bug. ***
Comment 5 Josef Reidinger 2009-11-05 16:09:28 UTC
I look at logs and I cannot find any problem in bootloader. It must be something in kernel or modules. At first I suggest ask mkinitrd maintainer.

Reason why pae remain as default is simple. It is not uninstalled (because it is now renamed to default, so maybe kernel-default show deprecate it?) and I don't change default to another flavor unless it is necessary ( because it is annoying for users).

So I see two problems - 
1) pae should be removed ( I think it is something for mmarek)
2) even if not removed I don't see reason why it should stop work ( maybe mkinitrd issue as it recreate initrd on new system also for old kernel)

milan - could you look at it as it looks like problem with modules?
(add mmarek to CC)
Comment 6 Michal Marek 2009-11-05 16:53:54 UTC
How exactly did you update (zypper up / zypper dup / boot from DVD / ...)?
Comment 7 Forgotten User w4XUsT47_R 2009-11-05 19:06:51 UTC
I logged bug 551030 and I updated from the DVD. I had openSuSE 11.1 on my IBM T61p laptop and after the update it booted the old kernel from openSuSE 11.1 and most of the hardware did not work. I have attached the Yast Logs as well as 
 /etc/sysconfig/bootloader and /boot/grub/menu.lst
Comment 9 Forgotten User w4XUsT47_R 2009-11-05 19:22:10 UTC
Created attachment 325832 [details]
Yast Logs from install on IBM T61P

This is the Yast2 logs from my install
Comment 10 Forgotten User w4XUsT47_R 2009-11-05 19:23:12 UTC
Created attachment 325833 [details]
/etc/sysconfig/bootloader from IBM T61p
Comment 11 Forgotten User w4XUsT47_R 2009-11-05 19:23:48 UTC
Created attachment 325835 [details]
menu.1st from IBM T61p
Comment 12 David Bailey 2009-11-05 21:18:33 UTC
(In reply to comment #6)
> How exactly did you update (zypper up / zypper dup / boot from DVD / ...)?

In my case it was an upgrade from the DVD ISO
Comment 14 Michal Marek 2009-11-06 13:29:59 UTC
The problem is that kernel-pae-base-2.6.27.29-0.1.1 was not removed on update :-/
Comment 15 Michal Marek 2009-11-10 11:19:26 UTC
Created attachment 326529 [details]
screenshot of the installation summary

I can reproduce it, for some reason kernel-pae-base is marked as "Keep" during upgrade. What's strange, there is no pae kmp among the other kept packages:
blktrace
fetchmsttfonts
ghostscript-omni
gmp
kernel-pae-base
libreadline5
libsepol1
openct
poppler-data
python-ReportLab
syslong-ng
xorg-x11-driver-video-unichrome
Comment 16 Michal Marek 2009-11-10 12:18:57 UTC
delete_old_packages is set to 'true' in /control.xml
Comment 17 Michal Marek 2009-11-10 12:37:20 UTC
Created attachment 326570 [details]
y2logs with solver testcase
Comment 18 Michal Marek 2009-11-10 17:06:09 UTC
The problem is the change from -pae or -default to -desktop: The DVD only has kernel-desktop, which obsoletes kernel-desktop-base, which unfortunately has no effect on kernel-pae-base :(. A zypper dup from the online repository stays with kernel-pae, which correctly obsoletes kernel-pae-base. As a workaround, when updating from DVD, deselect kernel-pae-base manually (In the Update Overview, click Packages, go to the Installation Overview tab, select Show packages with status [X] Keep, scroll down to kernel-pae-base and deselect it).
Comment 19 Michal Marek 2009-11-11 09:45:40 UTC
Added to http://en.opensuse.org/Bugs:Most_Annoying_Bugs_11.2
Comment 20 Michal Marek 2009-11-12 14:37:48 UTC
*** Bug 554897 has been marked as a duplicate of this bug. ***
Comment 21 Michal Marek 2009-11-12 14:59:43 UTC
Karl, can we document this in the release notes at least?
Comment 22 Karl Eichwalder 2009-11-13 05:14:22 UTC
Does a regular network update with YaST also work?  I mean, booting with the net-iso and then install from the network (ftp or http).
Comment 23 Michal Marek 2009-11-13 09:59:20 UTC
The net-iso should work, because the online repository contains also kernel-pae and kernel-default. But I haven't tried that, so this is only a speculation :).
Comment 24 Karl Eichwalder 2009-11-13 11:55:44 UTC
This is my proposal:

<!-- bnc#551642 -->

<title>Obsolete Kernel When Updating From DVD Medium</title>
<para>
When updating to 11.2 from the DVD medium, the kernel-pae-base (or kernel-default-base) package is not removed. If you do a distribution upgrade with "zypper dup" from the online repository, it works fine. The workaround to resolve this issue is: In the software package remove the kernel-pae-base package manually before doing the update installation.  Proceed as follows:
</para>
<para>
In the "Update Overview" dialog, click "Packages".  Go to the "Installation Overview" tab and select "Show packages with status [X] Keep".  Then scroll down to the kernel-pae-base package and deactivate it.
</para>
Comment 25 andreas bittner 2009-11-13 14:19:33 UTC
is there gonna be a fix in some configuration files or anywhere to give us the possibility to recreate the dvd iso install media?

i ask for updates and follow-up releases of the opensuse major versions such as the debian folks do with their Rx releases.

its really painful when final goldmaster images contain such bugs that render the install media useless or complicate things.

is it possible to introduce revision fix releases in the opensuse livecycle?
would be great.

opensuse 11.2r1 11.2r2 11.2r3 etc...

thanks.
Comment 26 Michal Marek 2009-11-13 19:38:07 UTC
(In reply to comment #24)
> This is my proposal:
> 
> <!-- bnc#551642 -->
> 
> <title>Obsolete Kernel When Updating From DVD Medium</title>
> <para>
> When updating to 11.2 from the DVD medium, the kernel-pae-base (or
> kernel-default-base) package is not removed. If you do a distribution upgrade
> with "zypper dup" from the online repository, it works fine. The workaround to
> resolve this issue is: In the software package remove the kernel-pae-base
                                ^^^^^^^^^^^^^^^^
"software manager" or "package manager"?


> package manually before doing the update installation.  Proceed as follows:
> </para>
> <para>
> In the "Update Overview" dialog, click "Packages".  Go to the "Installation
> Overview" tab and select "Show packages with status [X] Keep".  Then scroll
> down to the kernel-pae-base package and deactivate it.
> </para>

Looks good otherwise, thanks for writing this!
Comment 27 Karl Eichwalder 2009-11-16 15:02:12 UTC
Thanks for spotting, fixed in SVN (package manager).  The alternate term these says would by "software management", I think.
Comment 28 Swamp Workflow Management 2009-11-25 17:17:56 UTC
Update released for: release-notes-openSUSE
Products:
openSUSE 11.2 (i586)
Comment 29 Michal Marek 2010-01-20 12:23:18 UTC
The 11.2 DVDs are out, a workaround in the release notes is all we can get. For 11.3, there needs to be some /control.xml magic that makes sure kernel-pae-base and kernel-default-base are removed on update. Reassigning to coolo to add the magic.
Comment 30 Stephan Kulow 2010-01-21 16:03:49 UTC
I added them as obsolete packages to the product config now
Comment 31 Michal Marek 2010-02-16 15:15:35 UTC
*** Bug 555829 has been marked as a duplicate of this bug. ***