On Tue, Jan 29, 2019 at 2:22 PM Grant Taylor <gtay...@gentoo.tnetconsulting.net> wrote: > > On 01/29/2019 12:04 PM, Rich Freeman wrote: > > I don't see the value in using a different configuration on a box simply > > because it happens to work on that particular box. Dracut is a more > > generic solution that allows me to keep hosts the same. > > And if all the boxes in the fleet can function without an initramfs? > Then why have it? Why not apply Occam's Razor & Parsimony and use the > simpler solution. Especially if more complex solutions introduce > additional things that need to be updated.
If all my boxes could function reliably without an initramfs I probably would do it that way. However, as soon as you throw so much as a second hard drive in a system that becomes unreliable. I'm not saying you can't use linux without an initramfs. I'm just questioning why most normal people would want to. I bet that 98% of people who use Linux run an initramfs, and there is a reason for that... > > Sure, and I wouldn't expect them to require rebuilding your initramfs > > either. I was speaking generally. > > Modifying things like crypttab and / or adding / removing file systems > from the kernel that are required for boot have caused me to need to > rebuild an initramfs in the past. But that was not necessarily Gentoo, > so it may not be a fair comparison. A lot of that is situational. If you have a kernel without btrfs support, and you build btrfs as a module and switch your root filesystem to btrfs, then obviously you'll need to rebuild your initramfs since the one you have can't do btrfs. But, most people would just rebuild their initramfs anytime they rebuild a kernel just to be safe. If you added btrfs support to the kernel (built-in) then it is more of a toss-up, though in the case of btrfs specifically you might still need to regenerate the initramfs to add the btrfs userspace tools to it if you didn't already have them in /usr when you generated it the first time. But, if you're running btrfs you're probably forced to use an initramfs in any case. In any case, it isn't some kind of automatic thing. Just as some things require rebuilding a kernel, some things require rebuilding an initramfs. I just find it simplest to build an initramfs anytime I build a kernel, and use the make install naming convention so that grub-mkconfig just does its thing automatically. IMO Dracut is one of the most robust solutions for these sorts of situations. It is highly modular, easy to extend, and it really tries hard to respect your existing config in /etc. In fact, not only does it put a copy of fstab in the initramfs to help it find your root, but after it mounts the root it checks that version of fstab to see if it is different and then remounts things accordingly. If you haven't guessed I'm a bit of a Dracut fan. :) -- Rich