Fedora 30 upgrade and unable to boot

5

I have upgraded from 32 bit Fedora 28 to 30 using dnf system-upgrade, exactly as found in the Fedora documents. All was OK, up to dnf system-upgrade reboot. The started system has upgraded the packages, with cleanup and verify. After numerous hours, the system has restarted but grub cannot boot and it enters the grub command mode.

Using CD rescue disk, I have verified the hard disk and every partition on it using fdisk an fsck. Not problem encountered. I have verified in /boot/ and I have found vmlinuz and initramfs having the expected endings and a size which looks OK.

But /boot/grub2/grub.cfg is strange and very different from the usual structure.

I have booted from the grub command line using configfile /grub2/grub.cfg.rpmsave and I was able to boot as under Fedora 28. I have tried to generate a tentative grub.cfg using grub2-mkconfig and I have put it in /tmp/ in order to compare it with /boot/grub2/grub.cfg. The result: It is exactly the same.

What can I do in order to make the system running well as Fedora 30 as expected ?

Is it a good idea to run dnf update while running this old kernel 28 ?

Claude Frantz

Posted 2019-05-09T16:55:52.350

Reputation: 154

1How were you able to boot under Fedora 28 if you performed an upgrade to Fedora 30? That does not seem right. – Ramhound – 2019-05-09T17:03:31.893

2I have booted as explained in my message, using grub and the command configfile. See above. Excepted some minor dependency problems and the problem with grub.cfg, the system was upgraded to Fedora 30. But now running with the 28 kernel. – Claude Frantz – 2019-05-09T17:08:15.827

Answers

3

I had the same issue. Apparently if your Fedora installation is old enough, then it has the issue. I was upgrading from way early version thru those, then 29, then to 30. After the 30 upgrade, it boots to the grub> prompt.

In the end, I followed advice about running grub2-install from Common F30 bugs @ Fedora Project

I used an installation disk in troubleshoot/rescue mode to be able to manipulate the grub.cfg. Steps I did were:

  1. copied current (30) to have it for the future: cp grub.cfg grub.cfg.new
  2. copied old (29): cp grub.cfg.rpmsave grub.cfg
  3. reboot, which went into 29.
  4. logged in, ran grub2-install /dev/{boot drive} (for me, {boot drive} was sda)
  5. Rebooted, but honestly not sure this is necessary
  6. logged in, then put the current (3) grub.cfg back in place: cp grub.cfg.new grub.cfg
  7. Rebooted – it showed FC 30 and booted fine
  8. Reran grub2-install just to get whatever FC30 has instead of FC29
  9. Rebooted, logged in, ran dnf update

Evan

Posted 2019-05-09T16:55:52.350

Reputation: 31

Welcome to Super User. This is a good find, and it sure sounds similar. But according to the link, this specific issue is associated with GRUB dating back to v20 or earlier. The OP updated from v28. – fixer1234 – 2019-05-10T05:41:11.920

Many thanks for this excellent response. I have booted using grub.cfg.rpmsave as explained in my initial question. Then I have entered grub2-install /dev/sda1 and then rebooted. Now, the system is booting as expected. – Claude Frantz – 2019-05-10T06:45:17.730

This worked perfectly for me. I have a question though: why is going back to FC 29 needed? Couldn't running grub2-install with the FC30 grub.cfg (basically just step 8) work already? – cornuz – 2019-06-20T10:24:19.080

0

The most important part of the procedure is to run grub2-install in the newly upgraded FC30 system. In my opinion, it's probably sufficient to run this. Depending on the state where the booting process stops, you have to enter a different command on the GRUB2 shell in order to have the system started. The "configfile" command mentioned above has allowed me to start with the old kernel. Editing the offered GRUB2 boot entry and adding the appropriate "root=" suffix to the "linux" command has given me the opportunity to start in another situation with the new kernel. As soon as the system is running, enter the "grub2-install" mentioned previously, in a root shell.

Claude Frantz

Posted 2019-05-09T16:55:52.350

Reputation: 154

And if that "configfile /grub2/grub.cfg.rpmsave" command doesn't work, try something like configfile (hd0,1)/boot/grub2/grub.cfg.rpmsave to boot. Then grub2-install /dev/sda and if you're lucky, that's all you have to do. – basic6 – 2019-08-13T15:53:32.967