Ask Your Question
0

Upgraded to Fedora 28 but uname shows fc27. What to do?

asked 2018-06-02 10:15:06 -0600

marcosaluzzo gravatar image

I did the upgrade with the commands:

$ sudo dnf upgrade --refresh

$ sudo dnf system-upgrade download --refresh --releasever=28

$ sudo dnf system-upgrade reboot

I left the system to reboot yesterday and and came back this morning. If I reboot the system it on you shows fedora 27 to select from. I can boot the computer fine and if I go to the terminal and run

$ uname -or

it shows 4.16.12-200.fc27.x86_64 GNU/Linux

If I go to the folder /usr/lib/os.release.d/ and type

$ cat os-release-workstation

if shows

NAME=Fedora VERSION="28 (Workstation Edition)" ID=fedora VERSIONID=28 PLATFORMID="platform:f28" PRETTYNAME="Fedora 28 (Workstation Edition)" ANSICOLOR="0;34" CPENAME="cpe:/o:fedoraproject:fedora:28" HOMEURL="https://fedoraproject.org/" SUPPORTURL="https://fedoraproject.org/wiki/C...andgettinghelp" BUGREPORTURL="https://bugzilla.redhat.com/" REDHATBUGZILLAPRODUCT="Fedora" REDHATBUGZILLAPRODUCTVERSION=28 REDHATSUPPORTPRODUCT="Fedora" REDHATSUPPORTPRODUCTVERSION=28 PRIVACYPOLICYURL="https://fedoraproject.org/wiki/L..." VARIANT="Workstation Edition" VARIANT_ID=workstation

What steps can be taken to resolve this problem?

Thanks

edit retag flag offensive close merge delete

Comments

Are you sure you booted the latest kernel from grub (FYI, the F27 kernels aren’t being removed during upgrade). Just run another dnf update and should receive the latest F28 kernel.

florian gravatar imageflorian ( 2018-06-02 22:56:52 -0600 )edit

Under the boot grub an F28 kernel is not listed. Just F27 kernels are listed. In the boot folder only F27 images are there

marcosaluzzo gravatar imagemarcosaluzzo ( 2018-06-03 14:31:35 -0600 )edit

What does the system-upgrade log says? Everything went smooth? Did you run dnf --refresh update?

florian gravatar imageflorian ( 2018-06-03 21:12:08 -0600 )edit

Where can I find the system-upgrade log? I could not find anything under /var/lib/dnf.log

marcosaluzzo gravatar imagemarcosaluzzo ( 2018-06-04 04:46:34 -0600 )edit

3 Answers

Sort by » oldest newest most voted
1

answered 2018-06-02 13:46:14 -0600

villykruse gravatar image

updated 2018-06-03 01:56:04 -0600

Don't worry about this. It will be fixed whenever you receive the next kernel update in a week or so. It is already available in updates-testing.

The kernel versions are basically the same in fc27 and fc28 and the update procedure may not always chose to update the kernel when the fc28 version is not newer than the currently installed fc27 version.

You can try to re-install the packages kernel, kernel-core and kernel-modules.

dnf install kernel-4.16.12-300.fc28.x86_64 kernel-core-4.16.12-300.fc28.x86_64 kernel-headers-4.16.12-300.fc28.x86_64 kernel-modules-4.16.12-300.fc28.x86_64

Update: The new kernel is already here, so just update to get the new fc28 kernel installed.

edit flag offensive delete link more

Comments

If i try re-installing the kernel running your command it says

Last metadata expiration check: 1:47:41 ago on Sun 03 Jun 2018 19:38:15 CEST. Package kernel-4.16.12-300.fc28.x8664 is already installed, skipping. Package kernel-core-4.16.12-300.fc28.x8664 is already installed, skipping. Package kernel-headers-4.16.12-300.fc28.x8664 is already installed, skipping. Package kernel-modules-4.16.12-300.fc28.x8664 is already installed, skipping. Dependencies resolved. Nothing to do. Complete!

So the F28 kernel is already there. It is not listed under the grub. What can be done?

marcosaluzzo gravatar imagemarcosaluzzo ( 2018-06-03 14:30:45 -0600 )edit

Maybe your grub config just didn't get rebuild. For EFi systems, it's grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg, see wiki

florian gravatar imageflorian ( 2018-06-03 21:15:30 -0600 )edit

If I run this command will it rebuild the grub with the latest kernel installed?

marcosaluzzo gravatar imagemarcosaluzzo ( 2018-06-04 04:47:20 -0600 )edit

It will. As long as

  • You are booting in UEFI mode
  • The efi partition is mounted properly, that is, mounted on /boot/efi.

By the way: Do sudo file /etc/grub2.cfg /etc/grub2-efi.cfg

villykruse gravatar imagevillykruse ( 2018-06-04 07:00:00 -0600 )edit

sudo file /etc/grub2.cfg /etc/grub2-efi.cfg gives

/etc/grub2.cfg:     broken symbolic link to ../boot/grub2/grub.cfg
/etc/grub2-efi.cfg: symbolic link to ../boot/efi/EFI/fedora/grub.cfg

I am booting in UEFI mode. I can see files and folders under /boot/efi

marcosaluzzo gravatar imagemarcosaluzzo ( 2018-06-04 10:02:08 -0600 )edit
1

answered 2018-06-11 15:41:05 -0600

marcosaluzzo gravatar image

Thanks to all the help provided.

In the end the solution was very straight forward. The kernels images that I had available were all f27. If I tried running an update all repos were f27 even though if I listed the kernels installed (and other packages) there was f28 and f27s. So in the end I ran

dnf update --releasever=28

It then downloaded the latest f28 kernels (and other files) and the automatically recreated the img and vmlinuz for f28 files under boot and then I rebooted. In the grub was finally the f28 kernel.

Also this thread helped.

edit flag offensive delete link more
0

answered 2018-06-05 00:58:47 -0600

marcosaluzzo gravatar image

Hi Florian

I rebuilt the grub as indicated and this is the print out:

Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.16.12-200.fc27.x86_64
Found initrd image: /boot/initramfs-4.16.12-200.fc27.x86_64.img
Found linux image: /boot/vmlinuz-4.16.7-200.fc27.x86_64
Found initrd image: /boot/initramfs-4.16.7-200.fc27.x86_64.img
Found linux image: /boot/vmlinuz-4.16.6-202.fc27.x86_64
Found initrd image: /boot/initramfs-4.16.6-202.fc27.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-573133868ad24309849cebb21d42cf27
Found initrd image: /boot/initramfs-0-rescue-573133868ad24309849cebb21d42cf27.img
done

There isn't an image for the f28 kernel that is installed. Is there a way to build it?

edit flag offensive delete link more

Comments

If I run

rpm -qa kernel
kernel-4.16.12-200.fc27.x86_64
kernel-4.16.7-200.fc27.x86_64
kernel-4.16.12-300.fc28.x86_64
kernel-4.16.6-202.fc27.x86_64

the fc28 kernel has been installed.

marcosaluzzo gravatar imagemarcosaluzzo ( 2018-06-05 01:58:25 -0600 )edit
1

That does not say a lot, as the kernel package is an empty package which would pull in its dependencies.

rpm -qa 'kernel*'

should show kernel-core and kernel-modules. Besides, the kernel version is by now 4.16.13.

What is more important.

ls /boot/vmlinuz-* /boot/initramfs-*
villykruse gravatar imagevillykruse ( 2018-06-05 04:26:07 -0600 )edit

fc28 is not there.

# ls /boot/vmlinuz-* /boot/initramfs-*
/boot/initramfs-0-rescue-573133868ad24309849cebb21d42cf27.img
/boot/initramfs-4.16.12-200.fc27.x86_64.img
/boot/initramfs-4.16.6-202.fc27.x86_64.img
/boot/initramfs-4.16.7-200.fc27.x86_64.img
/boot/vmlinuz-0-rescue-573133868ad24309849cebb21d42cf27
/boot/vmlinuz-4.16.12-200.fc27.x86_64
/boot/vmlinuz-4.16.6-202.fc27.x86_64
/boot/vmlinuz-4.16.7-200.fc27.x86_64

is there way to create the img and vmlinuz file? Would this resolve my issue?

marcosaluzzo gravatar imagemarcosaluzzo ( 2018-06-05 07:56:12 -0600 )edit

rpm -qa 'kernel*'

shows kernel-4.16.12-300.fc28.x8664, kernel-core-4.16.12-300.fc28.x8664, kernel-headers-4.16.12-300.fc28.x8664 and kernel-modules-extra-4.16.12-300.fc28.x8664

marcosaluzzo gravatar imagemarcosaluzzo ( 2018-06-05 08:00:08 -0600 )edit

Question Tools

Stats

Asked: 2018-06-02 10:15:06 -0600

Seen: 528 times

Last updated: Jun 03 '18