Preupgrade fc14 to fc15 failed, kernel is not installed
GeeKer Wang
wwthunan at gmail.com
Fri Jun 3 02:31:44 UTC 2011
On Thu, Jun 2, 2011 at 9:29 PM, Kevin J. Cummings <
cummings at kjchome.homeip.net> wrote:
> On 06/02/2011 09:00 PM, GeeKer Wang wrote:
> > Hello, Kevin
> >
> > I can't enter my system now, however, I check the upgraded system using
> > livecd.
> > After login in my system by chroot in livecd, by checking "rpm -qa |grep
> > fc15 ", I am sure that many fc15 packages have installed.
> > And all the 3 steps you mentioned have passed, which takes a couple of
> > hours. So at least most fc15 packages have installed.
>
> OK, so while looking at the live system chrooted to your system, what is
> the response to:
>
> rpm -q kernel
>
> Let's find out if the proper kernel got installed. If so, then we'll
> have a look at your /etc/grub.conf (which is just a symlink to:
> /boot/grub/grub.conf). And then we'll try and figure out how to install
> it by running grubby by hand....
>
> There is no fc15 kernel, only
kernel-2.6.35.12-88.fc14.i686
kernel-2.6.35.12-90.fc14.i686
kernel-2.6.35.13-91.fc14.i686
> I just found a empty upgrade directory in /boot, and nothing related to
> > fc15 there. I guess preupgrade must forget to install kernel.
>
> Not likely, though its possible in some bizarre set of circumstances.
>
> Are you 100% sure that preupgrade didn't stop prematurely with some sort
> of error message?
>
> It halted halfway because of installing openjpeg-devel. I renamed related
files and preupgrade continued without other problem.
> So what I should do to rescue it is to upgrade/install kernel in chroot
> > environment. But I don't know how to upgrade kernel with a kernel RPM
> > file. Any advice?
>
> Let's find out if it got installed first. If it did, and it didn't
> install an entry in the grub menu, then it was a script-let of the
> kernel RPM which errored.
>
> If it did not get installed, it should be easy enough to install one by
> hand (with RPM) and see if it installs without any errors (and correctly
> modifies your /etc/grub.conf file). If it requires dependencies to
> install, then you will have other problems.
>
> When I tried "rpm -ivh kernel-2.6.38.6-fc15.i686.rpm", it failed with "grubby
fatal error: unable to find a suitable template". But it created some
files(eg. vmlinuz-xxx-fc15, initramfs-xxx.img) in /boot and /lib/modules.
However, grub-install didn't recognize these files.
> What I've ended up doing in circumstances like these is to plow ahead
> and continue the upgrade in pieces, by hand after ensuring that:
>
> 0) I have read the Fedora release notes for the version I am
> installing, looking for gotcha's that I may have tripped over!
>
> 1) I have a proper kernel installed and working (bootable), and the
> fedora-release RPM is the proper version and architecture.
>
> 2) yum and rpm (and all of their dependants) are up-to-date.
>
> 3) my network is up and running so I can do (yum) updates over the
> network.
>
> 4) essentially finish the upgrade by updating all of the remaining
> out-of-date RPMs on the system. Yes, you could try and continue from
> that point with "yum -y update", but you would most likely need to do it
> in pieces (to get around all of the broken packages) and also use the
> --skip-broken option to yum. I like to try it alphabetically (ie yum -y
> update a*), but usually end up breaking down each leading letter looking
> for packages that update nicely, and then figure out what's wrong with
> the packages that don't. This is not a quick and easy process. I've
> sometimes spent weeks cleaning up my server or my laptop from a failed
> upgrade in this fashion, but, in the end, my system has been upgraded,
> and not re-installed (for some reason, an updated system seems to me to
> be less likely to have some necessary local configuration lost than an
> installed update, but, I could be wrong). In the end, I learn a *lot*
> about Fedora, how it works (and how it sometimes doesn't work B^), and
> how to fix it.
>
> What doesn't work in this process is if some new set of packages
> obsoletes an installed set of packages, this method may not properly
> install the new set of packages. That's ultimately because Anaconda
> failed during preupgrade, but didn't leave a sufficient amount of
> information to properly fix the upgrade.
>
> If you are not able to install/boot a proper f15 kernel, let us know,
> there are ways (even more nefarious that a "yum upgrade") to update your
> system piecemeal, even from an f14 kernel....
>
> > On Thu, Jun 2, 2011 at 4:41 PM, Kevin J. Cummings
> > <cummings at kjchome.homeip.net <mailto:cummings at kjchome.homeip.net>>
> wrote:
> >
> > On 06/02/2011 10:13 AM, GeeKer Wang wrote:
> > > Hello, guys,
> > > I used preupgrade to upgrade fc14 to fc15, and everything
> > seemed
> > > fine. But when I reboot, I just find that kernel-fc15 is not
> > installed.
> >
> > I can't tell from what you written above, but, pre-upgrade is a multi
> > step process. Here are the steps in a nut-shell:
> >
> > 1) run preupgrade and have it download packages to a local repository
> on
> > your machine. It should also modify your /etc/grub.conf file to add
> an
> > entry which will continue the upgrade in step 2. When this step
> > completes, it should ask you to reboot your computer.
> >
> > 2) when you reboot, it should automatically select the F15 upgrade
> entry
> > and boot into the second stage installer and start installing the
> > downloaded packages on to your system. This is the step that fails
> for
> > many people. Places to look for problems are in /etc/grub.conf and
> in
> > /boot/upgrade/. In the latter you should have at least 3 files:
> > initrd.img, ks.cfg, and vmlinuz. If not, something else has gone
> wrong
> > for you to look into. If everything goes right, when the packages
> are
> > finished installing (and yet another change is made to your
> > /etc/grub.conf file), the system will reboot yet again....
> >
> > 3) The final reboot will run a script called firstboot which should
> > clean up from the upgrade process, and remove the old kernel versions
> > from your system. It will also check to make sure that any new
> packages
> > are configured properly (or prompt you for their configuration)
> > so that F15 will run correctly for you upon subsequent reboots. If
> you
> > get this far, preupgrade has done its job correctly and you should be
> > all set.
> >
> > > There are no vmlinuz-xxx.fc15.i686 and
> > initramfs-xxxx-fc15.i686.img in
> > > /boot, no entry about fc-15 written in grub.conf, and nothing
> > related to
> > > fc15 is found in /lib/modules.
> > >
> > > I just try to download kernel and install it manually. But I
> > don't know
> > > whether there are any other packages forgotten.
> >
> > What does "rpm -qa | grep fc15" tell you? (there should be *lots*
> > of hits).
> >
> > If it can't find any fc15 packages installed, you haven't upgraded
> yet.
> >
> > > --
> > > Bob
> >
> > --
> > Kevin J. Cummings
> > kjchome at rcn.com <mailto:kjchome at rcn.com>
> > cummings at kjchome.homeip.net <mailto:cummings at kjchome.homeip.net>
> > cummings at kjc386.framingham.ma.us
> > <mailto:cummings at kjc386.framingham.ma.us>
> > Registered Linux User #1232 (http://counter.li.org)
> > --
> > users mailing list
> > users at lists.fedoraproject.org <mailto:users at lists.fedoraproject.org>
> > To unsubscribe or change subscription options:
> > https://admin.fedoraproject.org/mailman/listinfo/users
> > Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> >
> >
> >
> >
> > --
> > Bob
> >
>
>
> --
> Kevin J. Cummings
> kjchome at rcn.com
> cummings at kjchome.homeip.net
> cummings at kjc386.framingham.ma.us
> Registered Linux User #1232 (http://counter.li.org)
> --
> users mailing list
> users at lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
>
--
Bob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/users/attachments/20110602/5a4223a6/attachment-0001.html
More information about the users
mailing list