Update salixlive live usb with new kernel modules and initrd

Post Reply
djemos
Salix Warrior
Posts: 1433
Joined: 29. Dec 2009, 13:45
Location: Greece

Update salixlive live usb with new kernel modules and initrd

Post by djemos »

Update salixlive 14.2.1 live usb with new kernel modules and initrd
When upgrades happen to slackware, users maybe want to upgrade their kernel and initrd in live usb to boot with new kernel. This cannot be done using the persistent file.
You have to first create a salixlive 14.2.1 live usb with install_on_usb.sh script included in iso.
You have to run a salix hard disk system upgraded to latest changes including new kernel.
You also have to install the slackware-live and syslinux in your system if they are not exist.

You can use this script to do it. Download the script and save it to you hard disk.
Then plug in your salix live usb and run the script

Code: Select all

sudo sh make_new_kernel_module.sh
Then boot with your salixlive 14.2.1 live usb using the new kernel and initrd.
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Update salixlive live usb with new kernel modules and initrd

Post by mimosa »

This looks like a really useful tool!

How does it behave if your system on the hard disk has a kernel other than the latest one in the repos, either more recent, or older?
djemos
Salix Warrior
Posts: 1433
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Update salixlive live usb with new kernel modules and initrd

Post by djemos »

mimosa wrote: 20. Aug 2018, 10:43 This looks like a really useful tool!

How does it behave if your system on the hard disk has a kernel other than the latest one in the repos, either more recent, or older?
Hi mimosa.
Script download the kernel packages which exist on repos did not install them on hard disk and create a module of them. Also create a initrd using the kernel version exist on system. So i suppose it will be a problem when kernel packages are different. Usb will boot and then report that the /lib/modules/some_version/ does not exist.
So the kernel installed on hard disk and the kernel packages used to create the modules must exist on system, be the same version.

Of course you can edit the script and put a # in front of lines starting at 86 end to 98
Before this you have to create the directory named "packages_dir" and copy there the kernel-headers kernel-huge kernel-modules packages for 64bit for example, you want to use and they are the same with the kernel version exist on your system.
Then run the script and the module will be able to boot the live usb.
Post Reply