Upgrading from Fedora 17 to Fedora 18
I just completed upgrading a Linode from Fedora 17 and Fedora 18 using the yum distro-sync method.
I suspected it should be possible to upgrade using pv_grub kernels and the fedup method.
Has anyone used the fedup method successfully in a Linode?
I tried just once to see what smoke it would give, and could not configure GRUB correctly. I will try again after I worked this process in a less remote machine.
4 Replies
Here are the instructions I used to upgrade a freshly deployed Fedora 17 32-bit up to Fedora 19. As thoth39 found, there are some gotchas.
4. Deploy Fedora 17 Distribution (32-bit for me), boot it and log in to root
* I suspect that if you go 64-bit, you don't have to deal with PAE kernel nonsense, so that may actually be easier and not require kernel swapping…but I haven't tried 64-bit, so that's another experiment for another day
yum update
Get the system booted on the Fedora kernel…
- 4. Not sure why…but I just couldn't get grubby to work right for this first kernel install. It works after this initial configuration though, so at least there's that.
Place kernel configuration gunk into /boot/grub/menu.lst, shamelessly ripping it from
. Contrary to what it suggests, do not save the bits to /boot/grub/grub.conf, or pv-grub will just stare blankly at you.this somewhat-helpful Linode articleln -s /boot/grub/menu.lst /etc/grub.conf
- * This is the key to eventually getting grubby to play nice with menu.lst.
yum install kernel-PAE
- * Ignore grubby failure message
:( - Update menu.lst to point to the right kernel/initrd
Reboot using pv-grub
- 4. Create a configuration profile, and set all the helpers to No
Edit it after saving and make sure they're really all set to no…possible Linode Manager bug?
Then boot it!
yum install fedup
fedup –network 19
- * Do NOT reboot when it says upgrade is ready
Swap in PAE upgrade kernel bits
- 4.
wget http://mirrors.kernel.org/fedora/releases/19/Fedora/i386/os/images/pxeboot/vmlinuz-PAE -O /boot/vmlinuz-fedup
wget http://mirrors.kernel.org/fedora/releases/19/Fedora/i386/os/images/pxeboot/upgrade-PAE.img -O /boot/initramfs-fedup.img
Reboot, and it will upgrade!
Pull up the AJAX console, and wait for it to report "Reached target Shutdown", then manually shut down your Linode…because Fedora seems unable to do it itself.
Boot!
yum distribution-synchronization
Enjoy Fedora 19!
If anyone has any thoughts on why grubby doesn't work on first kernel install (but does on subsequent kernel installs), how to make fedup use the PAE kernel directly (instead of having to swap it manually), or how to make the system actually shutdown post-upgrade, I'd like to hear them!
If anyone's interested in steps to get SELinux going on Fedora, I may follow up with those later – this was my main interest in jumping into Fedora with a distribution-provided kernel.
At the final reboot with Ajax console, it did not shutdown/need another boot.
I skipped the pv-grub/grubby steps, so still running kernel 3.9.3-x86_64-linode33.
Just wondering has anyone has any luck applying this to upgrade fedora17 to fedora19?
Thanks