Bug 179381
| Summary: | RHEL-4 update to FC5t2 leaves behind incorrect kernels | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Stephen Tweedie <sct> |
| Component: | anaconda | Assignee: | Anaconda Maintenance Team <anaconda-maint-list> |
| Status: | CLOSED RAWHIDE | QA Contact: | Mike McLean <mikem> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 5 | CC: | davej, sundaram |
| 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: | 2006-02-20 20:26:46 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 150222 | ||
|
Description
Stephen Tweedie
2006-01-30 19:13:40 UTC
We probably want to just have the kernel package doing the right thing here. That would need kernel obsoleting kernel-smp < something reasonable for x86_64. Then the tricky part is switching the /etc/sysconfig/kernel stuff so that the right kernel gets made default. I suspect grubby needs to be involved too. As I understand things right now, we only ever update the default boot line in grub if the new kernel is replacing an existing default one of the same variant. Replacing a kernel-smp with a kernel package may not trigger that. The kernel spec has had.. %ifarch x86_64 Obsoletes: kernel-smp %endif Since ~ November. The kernel is processed as 'i' with in the transaction install only which does not do any erases (including obsoletes). Even if it did do obsoletes, that wouldn't fix up the grub config entry. Hmm, we should definitely be overriding the installonlypkgs as we don't ever want that behavior from anaconda. Problems like this are just too painful. Paul -- want to fix this up? Dave -- we probably still need to do something for munging /etc/sysconfig/kernel so that the right thing gets set as default by grubby. We basically just need to do: sed -e -i 's/^DEFAULTKERNEL=kernel-smp$/DEFAULTKERNEL=kernel/' /etc/sysconfig/kernel Kind of gross though :-/ I've fixed anaconda up to override installonlypkgs kernel now has.. if [ `uname -i` == "x86_64" ]; then sed -e -i 's/^DEFAULTKERNEL=kernel-smp$/DEFAULTKERNEL=kernel/' /etc/sysconfig/kernel fi as the first thing in its %post These bugs are being closed since a large number of updates have been released after the FC5 test1 and test2 releases. Kindly update your system by running yum update as root user or try out the third and final test version of FC5 being released in a short while and verify if the bugs are still present on the system .Reopen or file new bug reports as appropriate after confirming the presence of this issue. Thanks This should be handled properly in test3 |