Page 1 of 1

/etc/kernel/postinst.d

Posted: 25. Jan 2026, 18:46
by notspecial
Hi,

Salix 15.0 64-bit.

I'm looking for information about /etc/kernel/postinst.d. How is this directory used? What triggers looking in this directory for post install scripts?

I checked the online documentation (very nice site), but did not find anything relevant.

Thanks. :)

Re: /etc/kernel/postinst.d

Posted: 26. Jan 2026, 16:08
by gapan
There is no such directory on a Salix system.

Re: /etc/kernel/postinst.d

Posted: 4. Feb 2026, 23:40
by notspecial
Ah, okay, thanks. That info helped me figure out where the directory came from -- virtualbox guest additions.

Originally where I was going with that /etc directory is perhaps supporting the generic kernel in Salix 15.0. The huge kernel is going away in the next Slackware release. I'll guess that means going away in Salix too, but regardless does not help with 15.0. The key point is finding a way to automate generating an initrd in Salix. I can hack that on my own, but when I saw the referenced /etc directory I thought that might provide a hook of some sort. A little more web surfing indicates the package manager probably needs to support that /etc directory (seems like a Red Hat and Debian thing). I think Current now supports automatically creating an initrd but again, no help with 15.0. Oh well. :)

Re: /etc/kernel/postinst.d

Posted: 14. Feb 2026, 10:42
by gapan
I'm afraid the answer to your problem is simply: use grub.

You don't need to create an initrd with grub, it picks up the necessary modules straight from the filesystem.