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.
How long does it take to go through all of the configuration options to work out precisely what is needed and what is not?
Quote:
Originally Posted by enorbet
I'm not saying anyone is silly for using a generic kernel and an initrd and messing with mklinitrd or geninitrd. If that works for you that is perfectly valid but I am going to build a custom kernel anyway...
I build my kernels, too, because I follow the latest kernels (now 6.5.1). It is not needed to go through all of the configuration options. For example, if you would only use initrd to load the ext4 module, it does not take many seconds to copy Patrick's latest config-generic-6.1.51.x64 to .config, run 'make menuconfig', and change "The Extended 4 (ext4) filesystem" setting (CONFIG_EXT4_FS) to compile ext4 built-in. And you can use the same .config next time, no need to reconfigure.
The barrier is in your head. You've built it up in your mind to be bigger than it is.
Everything you need to know is in the 598 word mini-HOWTO symlinked in the /boot directory of a standard Slackware installation. This document first appeared in Slackware on 21 June 2004, and was first included in the 10.0 release... >19 years ago. It's worth reading, if only to slay the dragon in your own head.
It's my imagination because my workflow isn't the same as yours? I don't understand why you don't get it that within just a few minutes of first boot or a kernel upgrade I rebuild the kernel anyway, so why not make one step, taking mere seconds longer, to avoid complexity and further steps? I've been working this way since Slackware v7.
To expand on Petri's method (using /etc/mkinitrd.conf) and if you have multiple kernels installed via installpkg...
For multiple kernels, I found checking /lib/modules unreliable due to orphan directories being left behind. But obviously not a problem if you keep it clean or use it like Petri does for a single kernel.
A desktop, a server/firewall, a (normal-sized) laptop, and a netbook, all running Slackware-current. All set up to install the latest kernel with "mkinitrd -F ... && lilo" with the same command. And of course, the same "su" password (but that's because I'm just lazy). The next step? Duplicate the 4 sessions into a single input, via "multixterm". I could "upgradepkg", with symlinks for x86_64 or i686, and then go to /boot to do the installation stuff.
That setup beforehand, paid off really well, with outputs showing health and consistency
We all do things a bit differently. I use symlinks in /boot to reference the kernels; vmlinuz-generic-stock, vmlinuz-generic-working and occasionally vmlinuz-generic-testing.
Don't get upset. It's your system, go do whatever you like.
But don't claim that building a kernel is quicker or easier than using an initrd, because it's not... by a substantial margin.
I wasn't upset before but now I am a wee bit because you are misrepresenting what I have written. I never made the claim that an isolated instance of building a kernel is quicker or easier than generating an initrd. I won't bore everyone with what I actually wrote since it is already a matter of record. Just please stop misepresenting my words to suit your personal preference and workflow. Your way is fine and so is mine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.