generic kernels and supporting Slackware setup/package management tools
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
generic kernels and supporting Slackware setup/package management tools
While I welcome the move to a generic from the huge kernels and the flexibility given by initrd, many folks might forget that moving to an initrd supported kernel also requires changes to the lilo.conf file and the need to keep this initrd file updated during new kernel changes. Things I reminded after 30 years on running on automatic mode and had a kernel panic while booting the new generic, since there was no initrd for this kernel in my lilo.conf file. Luckily, I had the huge kernel as my fallback option, so not a big deal to power cycle this VM one more time.
Kudos to Pat for his due diligence with an updated pkgtool Setup script for mkinitrd, and to provide a README file symlinked inside /boot explaining how things work going forward.
liloconfig, however, still fails to account for the initrd requirement. To improve this, I made a quick patch that check if we are using a generic kernel, and if so, updates the initrd file using Pat's mkinitrd script from pkgtool. Might become a duplicate effort if selected from the Setup option together with liloconfig, but better run it twice than none.
Kudos to the slackpkg tool maintainers for adding a reminder about regenerating a the initrd whenever a new kernel is installed/upgraded, however it does falsely remind even if there is no initrd configured on the lilo.conf file. Perhaps it only checks for the word "initrd", that happens to be present as a comment for the "compat" option, and not at the Linux bootable partition config section.
Patrick recently made a change to the way generic kernels are built. The generic kernels now include support for many file systems by default.
Much to the delight of the uneducated luddite faction on here, an initrd is no longer required to boot a machine with the generic kernel unless you boot from SCSI attached disks or encrypted filesystems (if I've read that right).
It's a small change, but it should cut down a lot of the noise on here.
LILO should see your initrd with the default config.
You might be a bit too late with this, because it seems that LILO is dying. It wouldn't surprise me if GRUB becomes the default boot loader soon. From what I gather, the main reason for this is the lack of maintenance causing LILO to increasingly fail.
EDIT: With all the above said, it is good to see people still caring for these things. Well done. Your effort here is appreciated.
an initrd is no longer required to boot a machine with the generic kernel unless you boot from SCSI attached disks
Good and fair point. Not a necessity for desktops, but SCSI is a mandatory device at about any server. I personally would love to see, for instance, a "vmware" kernel provided by Slackware team. Since that is not an easy ask (1. way too many things for one Pat alone to handle, 2. that opens a door for folks to also ask for an official Slackware [insert your VM environment here] kernel), and since we can happily live with either the generic+initrd or the huge kernels, those of us running Slackware on virtual environments have to find our ways to keep the ball rolling while life pushes us to do more with less.
Quote:
Originally Posted by rkelsen
LILO should see your initrd with the default config.
LILO does not see an initrd with its default config when updating from huge to generic. Tried that, failed miserably. Hence the code update I shared. Maybe it works on a fresh install and I'm just barking on a tree flagged to be cut down.
Quote:
Originally Posted by rkelsen
it seems that LILO is dying (...) the main reason for this is the lack of maintenance causing LILO to increasingly fail
Might have limitations/hiccups with bare metal, but I am yet to see one failed on Azure/Oracle Cloud/VMWare/Hyper-V/KVM.
Quote:
Originally Posted by rkelsen
it is good to see people still caring for these things. Well done. Your effort here is appreciated.
I personally would love to see, for instance, a "vmware" kernel provided by Slackware team.
A fellow VM user! We're seemingly in the minority here... but Slackware runs very well in VMs. I've had at least one Slackware VM running 24x7 since June 2019. Currently there are 3, all doing different jobs.
I personally would love to see, for instance, a "vmware" kernel provided by Slackware team.
//snip
The setup program could create a special initrd if it detects a virtual machine manager. This is what I have in "/etc/mkinitrd.conf" for VM guest whose root image comes from a shared directory from the host:
There might be other modules necessary such as vmw_pvrdma and etc. in special cases.
Anyway, the virtual machine might emulate other devices, so I think the simple solution is to retain only the generic kernel and install all kernel modules into the installation initrd.img.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.