Page 1 of 1

Kernel update

Posted: 13. Dec 2022, 17:37
by ikke
Have installed (full install) salix15 form a salixlive64.iso on a 32G usb stick. Nice distro! Very nice!!

Have been updating today! No problems.

But then i tried to update the kernel. Found Djemos' good advice :

Code: Select all

 To upgrade the kernel have to install kernel-headers kernel-huge and kernel-modules of same version (otherwise ... and for kernel source 
 sudo slapt-get -i kernel-source and if you have grub run 
 sudo update-grub

Installed the packages and then tried : "sudo update-grub"
Got following errormessage : "

Code: Select all

  /usr/sbin/update-grub: line 5: grub-mkconfig: command not found
".
Booting is now impossible. Tried to adapt the grub.cfg-file : vmlinuz-huge-5.15.63 --> vmlinuz-huge-5.15.80. To no avail.

Booting salix is no longer possible.

My question : how to find and install the "grub-mkconfig" file?

Thank you for kind attention.

Re: Kernel update

Posted: 13. Dec 2022, 18:48
by djemos
When installed salix did you choose grub boot loader? If so then the grub package has been installed and also the grub-scripts package.
/usr/sbin/grub-mkconfig is in the grub package.
It seems you choose elilo as boot loader.
Since you installed salix to a usb stick then you also need a initrd image to boot from it.
If you have read the salix-live-startup-guide there is is a tool install-upgrade-kernel-ext-usb-gtk for this job. Because you have to know how to create the initrd image and then run grub-update to do it by hand.
This gui tool upgrade the kernel and also create the initrd image and run update-grub. Just with one click.
So i suggest if you do not know how to do it then reinstall the salix choosing grub as boot loader the default on SLI, it is checked. Then boot with the usb and download and install the above gui tool and run it to upgrade the kernel. It will shown in the menus. Then boot again with the usb with the updated kernel.

Note this tool is used to upgrade the kernel only for real installation to a usb stick.

For installation to internal hard disk the install-upgrade-kernel-gtk is used.

Both gui tools need grub installed. You cannot use them with (e)lilo. Because they run update-grub in the end.
I use both to upgrade the kernel on external usb or on my laptop installation.

Re: Kernel update

Posted: 15. Dec 2022, 08:10
by ikke
Thank you Djemos for good advice and al the info.

As per your advice I have downloaded the "install-upgrade-kernel-ext-usb-gtk" from your website and installed it with 'pkginstall'. And finally run the script. All went well.

Have found now that grub is booting a Slackel and not a Salix distro.
And when updating :

Code: Select all

The following packages have been EXCLUDED:
  glibc-zoneinfo kernel-firmware
Why is this? What can I do to install these files?

Thank you for kind attention.

Re: Kernel update

Posted: 15. Dec 2022, 16:08
by djemos
Grub is booting slackel and salix.
packages who excluded are installed with
sudo slapt-get -i glibc-zoneinfo kernel-firmware

Re: Kernel update

Posted: 16. Dec 2022, 20:57
by ikke
Just to say : thank you.

Problems are solved!

Nice weekend!