I have recently upgraded Fedora Core 2 to Fedora Core 3 using Yum. The steps are outlined below:
-
Import the Fedora RPM-GPG-KEY if not done so already.
# rpm --import /usr/share/rhn/RPM-GPG-KEY-fed ora
# wget http://download.fedoralegacy.o rg/fedora/3/os/i386/fedora-rel ease-3-8.i386.rpm
# wget http://download.fedoralegacy.o rg/fedora/3/os/i386/yum-2.1.11 -3.noarch.rpm
# rpm -Uvh --force fedora-release*.rpm yum*.rpm
# yum update kernel
# lilo -v -v
# lilo -R 2.6.12-1.1381_FC3
# yum remove kernel-2.4*
# yum upgrade
Reboot once the upgrade is successful.
References:
- sandip's blog
- Login or register to post comments
Comments
The upgrade from FC5 to FC6 was a pretty straight-forward and without much hassle.
# rpm -Uvh \ t.com/pub/fedora/linux/core/6/ i386/os/Fedora/RPMS/fedora-rel ease-6-4.noarch.rpm \ t.com/pub/fedora/linux/core/6/ i386/os/Fedora/RPMS/fedora-rel ease-notes-6-3.noarch.rpm
http://download.fedora.redha
http://download.fedora.redha
# yum -y upgrade
Error: Unable to satisfy dependencies
Error: Package autofs conflicts with kernel < 2.6.17.
Error: Package hal conflicts with kernel < 2.6.17.
Either, update your current kernel to the latest and greatest prior to the upgrade or remove autofs and hal rpm packages and do the upgrade. Once the upgrade is finished, you can then reinstall both rpms.
The upgrade went fine after I removed 2.6.14* and older kernels.
# rpm -e kernel-2.16.14* com/pub/fedora/linux/core/5/i3 86/os/Fedora/RPMS/fedora-relea se-5-5.noarch.rpm
# rpm -Uvh http://download.fedora.redhat.
# yum -y upgrade
However, when trying to boot using the FC5 kernel -- "kernel-2.6.18-1.2239.fc5", the kernel kept going to panic mode since it failed to mount "/dev/root" as it could not find the "/dev/root" filesystem.
/dev/root being a part of initrd, I commented out the initrd part in lilo.conf and rebuilt it using `lilo -v -v`.
image=/boot/vmlinuz-2.6.18-1.2 239.fc5 p; label=fc5 p; root=/dev/hda4 p; read-only p; #initrd=/boot/initrd-2.6.18-1. 2239.fc5.img
&nbs
&nbs
&nbs
&nbs
It takes a while for the kernel to load but it does boot up now.
For some reason, when init calls 'mount /sysroot', it's trying to mount /dev/root to /sysroot, instead of /dev/hda4 to /sysroot. This messes up everything after this step in the init process. When it does a switchroot at the end, it fails. After killing init, it causes the kernel panic.
Here's what I did to fix it:
Boot using the initrd line commented out of lilo.conf .
Edit the init file and find 'mount /sysroot' and comment this out. Replace with:
Change the initrd line in lilo.conf to point to the fixed image.
Extract initrd image using:
# mkdir /tmp/new_initrd .img | cpio -id
# cd /tmp/new_initrd
# gunzip < /boot/initrd-2.6.18-1.2239.fc5
mount -t ext3 -o defaults,ro /dev/hda4 /sysroot
... where /dev/hda4 is the mount point for / in the fstab file. Recreate the initrd image file:
# find . | cpio --quiet -co | gzip -9 > /boot/initrd-2.6.18-1.2239.fc5 .fix.img
Regenerate with `lilo -v -v` and reboot.
Reference:
https://www.redhat.com/archive s/fedora-list/2005-January/msg 07843.html
Check this thread: ugzilla/show_bug.cgi?id=211030
https://bugzilla.redhat.com/b
I suggest you follow Clyde E. Kunkel's advice (a bit simpler than the above) and do the following: .img 2.6.18-1.2239.fc5
mkinitrd -v -f --with=raid456 /boot/initrd-2.6.18-1.2239.fc5
Solved my problem, at least.
The upgrade from Fedora Core 3 to Fedora Core 4 was a bit tricky.
I used the FC3 kernel as booting to the FC4 kernel would not bring my eth0 network up.
# rpm -Uvh --force http://download.fedoralegacy.o rg/fedora/4/os/i386/fedora-rel ease-4-2.noarch.rpm
# yum upgrade
However, after the upgrade the latest kernel on FC4 still would not bring up the network and additionally, I got "Cannot find a valid baseurl for repo: updates-released" error when using yum.
Further investigation about the yum error revealed that the problem was with wget, which would only work by forcing connecting to IPv4 address ( `wget --inet4-only http://linuxweblog.com` ). This may be related to the bug reported at https://bugzilla.redhat.com/bu gzilla/show_bug.cgi?id=186592 as removing "nisplus" from the "host" line in "/etc/nsswitch.conf" resolved the problem for me.
I realized that the external usb drive being mounted by my "rc.local" file was messing up with trying to boot using the FC4 kernel "kernel-2.6.17-1.2142_FC4".
Commented out the below lines for now from the "rc.local" file:
# Mount usbdisk LVM for rsync backup
#vgscan > /dev/null 2>&1
#vgchange -a y
#mount /mnt/usbdisk