Author Topic: How to test a new kernel  (Read 337 times)

cchinicz

  • Jr. Member
  • **
  • Posts: 89
  • Karma: +0/-0
    • View Profile
How to test a new kernel
« on: November 12, 2020, 10:43:58 am »
Hi,

I've upgraded from Fedora 32 to Fedora 33 and I want to test kernel-5.8.18-300.fc33.ppc64le.

Issuing command "sudo dnf upgrade --advisory=FEDORA-2020-6bac1c305f" (see https://bodhi.fedoraproject.org/updates/FEDORA-2020-6bac1c305f) I can see files initramfs-5.8.18-300.fc33.ppc64le.img in /boot directory.

When checking file /boot/grub2/grub.cfg there is no kernel-5.8.18-300.fc33.ppc64le option available. I've tried running grub2-mkconfig but /boot/grub2/grub.cfg remained unchanged.

I've then downloaed kernel-5.8.18-300.fc33.ppc64le.rpm from https://koji.fedoraproject.org/koji/buildinfo?buildID=1637394 and run "rpm -ivh kernel-5.8.18-300.fc33.ppc64le.rpm" and the response includes "package kernel-5.8.18-300.fc33.ppc64le is already installed". Still /boot/grub2/grub.cfg does not contain kernel-5.8.18-300.fc33.ppc64le.

What am I missing here?

Any help is much appreciated.

Thanks

ClassicHasClass

  • Full Member
  • ***
  • Posts: 175
  • Karma: +12/-0
  • Talospace Earth Orbit
    • View Profile
    • Floodgap
Re: How to test a new kernel
« Reply #1 on: November 12, 2020, 10:59:30 am »
I assume it doesn't show up either as an option in Petitboot.

cchinicz

  • Jr. Member
  • **
  • Posts: 89
  • Karma: +0/-0
    • View Profile
Re: How to test a new kernel
« Reply #2 on: November 12, 2020, 11:01:37 am »
I assume it doesn't show up either as an option in Petitboot.
Yep. All I see on Petit boot is what is in grub.cfg.

Any idea?

MPC7500

  • Sr. Member
  • ****
  • Posts: 290
  • Karma: +16/-1
    • View Profile
    • Twitter
Re: How to test a new kernel
« Reply #3 on: November 12, 2020, 12:54:42 pm »

cchinicz

  • Jr. Member
  • **
  • Posts: 89
  • Karma: +0/-0
    • View Profile
Re: How to test a new kernel
« Reply #4 on: November 12, 2020, 01:49:50 pm »
This works for me: How to install a kernel from koji
Hi MPC7500,

I read the article you sent and got excited because I realised I had installed just kernel-5.8.18-300.fc33.ppc64le.rpm, so I've downloaded kernel-core-5.8.18-300.fc33.ppc64le.rpm and kernel-modules-5.8.18-300.fc33.ppc64le.rpm and run "sudo dnf install kernel-5.8.18-300.fc33.ppc64le.rpm kernel-core-5.8.18-300.fc33.ppc64le.rpm kernel-modules-5.8.18-300.fc33.ppc64le.rpm". The result was:

Package kernel-5.8.18-300.fc33.ppc64le is already installed.
Package kernel-core-5.8.18-300.fc33.ppc64le is already installed.
Package kernel-modules-5.8.18-300.fc33.ppc64le is already installed.
Dependencies resolved.
Nothing to do.

I've checked /boot/grub2/grub.cfg, which had not changed. I've run grub2-mkconfig but grub.cfg did not change.

I've booted to see if something had changed but no, nothing changed.

Can you give me some additional advice? this is first time I try this and maybe I missed some important point.

Thanks in advance.

MPC7500

  • Sr. Member
  • ****
  • Posts: 290
  • Karma: +16/-1
    • View Profile
    • Twitter
Re: How to test a new kernel
« Reply #5 on: November 12, 2020, 03:47:37 pm »
No idea. It just worked. I would remove it and install it again.

cchinicz

  • Jr. Member
  • **
  • Posts: 89
  • Karma: +0/-0
    • View Profile
Re: How to test a new kernel
« Reply #6 on: November 13, 2020, 04:36:55 am »
No idea. It just worked. I would remove it and install it again.
Hi MPC7500,

I've removed and reinstalled the three RPM packages (kernel-5.8.18-300.fc33.ppc64le.rpm kernel-core-5.8.18-300.fc33.ppc64le.rpm kernel-modules-5.8.18-300.fc33.ppc64le.rpm) but it did not work.

I've changed /boot/grub2/grub.cfg to a different name and ran grub2-mkconfig but no new /boot/grub2/grub.cfg was created. So I've changed back the name to /boot/grub2/grub.cfg and booted. On Petitboot I only see what's in /boot/grub2/grub.cfg.

If I issue command "rpm -qa kernel" I get this as a response:
kernel-5.8.18-300.fc33.ppc64le
kernel-5.8.16-200.fc32.ppc64le
kernel-5.8.17-300.fc33.ppc64le

If I issue command "rpm -qa | grep -i kernel" I get this:
kernel-modules-5.8.18-300.fc33.ppc64le
kernel-core-5.8.18-300.fc33.ppc64le
kernel-modules-extra-5.8.17-300.fc33.ppc64le
kernel-core-5.8.16-200.fc32.ppc64le
kernel-core-5.8.17-300.fc33.ppc64le
kernel-5.8.18-300.fc33.ppc64le
kernel-5.8.16-200.fc32.ppc64le
kernel-srpm-macros-1.0-3.fc33.noarch
kernel-headers-5.8.18-300.fc33.ppc64le
kernel-modules-5.8.16-200.fc32.ppc64le
libreport-plugin-kerneloops-2.14.0-12.fc33.ppc64le
kernel-5.8.17-300.fc33.ppc64le
kernel-modules-extra-5.8.16-200.fc32.ppc64le
abrt-addon-kerneloops-2.14.4-7.fc33.ppc64le
kernel-modules-5.8.17-300.fc33.ppc64le
libreport-plugin-kerneloops-2.13.1-5.fc32.ppc64le
abrt-addon-kerneloops-2.14.2-3.fc32.ppc64le
kernel-modules-extra-5.8.18-300.fc33.ppc64le

It is really frustrating!

cchinicz

  • Jr. Member
  • **
  • Posts: 89
  • Karma: +0/-0
    • View Profile
Re: How to test a new kernel
« Reply #7 on: November 13, 2020, 04:51:36 am »
Hi guys,

I found the issue here (https://fedoraproject.org/wiki/GRUB_2). The right commnad to create a new /boot/grub2/grub.cfg from the installed kernels is "grub2-mkconfig -o /boot/grub2/grub.cfg" and not just "grub2-mkconfig" as I was doing.

Thank you all.