LWN: Comments on "Dracut looks to replace the initramfs patchwork" https://lwn.net/Articles/317793/ This is a special feed containing comments posted to the individual LWN article titled "Dracut looks to replace the initramfs patchwork". en-us Wed, 15 Oct 2025 21:56:33 +0000 Wed, 15 Oct 2025 21:56:33 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net Dracut looks to replace the initramfs patchwork https://lwn.net/Articles/398612/ https://lwn.net/Articles/398612/ bobbytables <div class="FormattedComment"> +1<br> <p> I was introduced to initramfs-tools when I started building my kernel.org images with kernel-package/make-kpkg (yet another great Debian tool). <br> <p> It was a breeze for me so I didn't even appreciate how good it is... until I tried to set up my full disk encryption on another distro (a root partition inside a LVM2 container inside a LUKS partition) - it was pain... <br> <p> Congrats for your work and I'd really like to see an article!<br> </div> Tue, 03 Aug 2010 21:24:36 +0000 Dracut looks to replace the initramfs patchwork https://lwn.net/Articles/318809/ https://lwn.net/Articles/318809/ tack <div class="FormattedComment"> One more "me too."<br> <p> I recently got a thorough education on how initramfs-tools works in troubleshooting recent root-over-lvm-over-md problems, and I must say I was very pleased with the design, flexibility, and customizability.<br> <p> When I later had to deal with Fedora's initrd toolset, I was one very agitated sysadmin.<br> </div> Wed, 11 Feb 2009 20:55:08 +0000 Dracut looks to replace the initramfs patchwork https://lwn.net/Articles/318539/ https://lwn.net/Articles/318539/ apollock <div class="FormattedComment"> Yes, please do write an article. I'd be happy to help. Having dicked around with Ubuntu's initramfs to customisation purposes, it's really a hidden goldmine of flexibility.<br> </div> Sun, 08 Feb 2009 22:24:34 +0000 Dracut looks to replace the initramfs patchwork https://lwn.net/Articles/318216/ https://lwn.net/Articles/318216/ lbt <div class="FormattedComment"> Yes please - and don't forget to talk about issues with smaller devices too (eg Nokia N800).<br> <p> It would be interesting to see 'the right way' to extend initramfs too.<br> <p> Why not submit it upstream - no-one thinks twice about YAFS so it seems reasonable to have a competing initramfs tool.<br> </div> Thu, 05 Feb 2009 17:44:28 +0000 Dracut looks to replace the initramfs patchwork https://lwn.net/Articles/318183/ https://lwn.net/Articles/318183/ Stephen_Beynon <div class="FormattedComment"> At the risk of this turning into a 'me too' thread I would also like to see such an<br> article.<br> </div> Thu, 05 Feb 2009 16:32:21 +0000 Dracut looks to replace the initramfs patchwork https://lwn.net/Articles/318177/ https://lwn.net/Articles/318177/ iabervon <div class="FormattedComment"> You'll never be able to make a single initramfs image that works for everything, but I don't see any reason that a single initramfs project couldn't have a per-kernel build process that would take a set of instructions on mounting the root filesystem as part of its configuration and generate an initramfs image that does it.<br> <p> </div> Thu, 05 Feb 2009 16:19:39 +0000 Dracut looks to replace the initramfs patchwork https://lwn.net/Articles/318150/ https://lwn.net/Articles/318150/ roblucid <div class="FormattedComment"> Very interested!<br> </div> Thu, 05 Feb 2009 14:55:43 +0000 Dracut looks to replace the initramfs patchwork https://lwn.net/Articles/318142/ https://lwn.net/Articles/318142/ nix <div class="FormattedComment"> Indeed. I have systems here that boot normally, systems here that need to <br> mount LVM, systems that mount LVM-atop-RAID, one bizarre system that has a <br> root filesystem on RAID-atop-LVM (!), a couple of systems whose RAID <br> arrays are assembled over the network block device, and one that never <br> actually mounts a root filesystem atop the rootfs but does all its work <br> from there.<br> <p> Booting can be arbitrarily complicated: it must, no matter what, remain <br> possible to *replace* whatever standardized initramfs framework goes <br> upstream, because nothing will ever cope with all the utterly bizarre <br> corner cases.<br> <p> </div> Thu, 05 Feb 2009 14:22:42 +0000 Req: article on initramfs-tools. https://lwn.net/Articles/318087/ https://lwn.net/Articles/318087/ k3ninho <div class="FormattedComment"> Jeff, thanks for your work on initramfs-tools. I've had to start using it when I moved up to Debian from Ubuntu. I'd love to hear more about it, especially when other comments in this thread describe it as simple elegant and powerful.<br> <p> K3n.<br> </div> Thu, 05 Feb 2009 09:50:31 +0000 Dracut looks to replace the initramfs patchwork https://lwn.net/Articles/318085/ https://lwn.net/Articles/318085/ climent <div class="FormattedComment"> Not only every basic feature will have to be implemented in dracut, but also every extended feature (read cryptofs/LUKS) will have to be. For all the distros.<br> <p> The day that happens we have a replacement. Otherwise, I want to be able to boot from my encrypted partitions when i use my laptop.<br> </div> Thu, 05 Feb 2009 09:43:18 +0000 Dracut looks to replace the initramfs patchwork https://lwn.net/Articles/318068/ https://lwn.net/Articles/318068/ jengelh <div class="FormattedComment"> That is because initramfs is extracted to the 'rootfs' (some instance of an ramfs), and rootfs is not supposed to be pivoted. Instead, you remove all files and then do a normal chroot. In other words:<br> <p> $myothercommands;<br> LD_LIBRARY_PATH=/mnt/lib /mnt/lib64/ld-linux-x86-64.so.2 /mnt/bin/rm -Rf /$everythingButMnt;<br> exec /mnt/lib64/ld-linux-x86-64.so.2 --library-path "/mnt/lib:/mnt/usr/lib" /mnt/usr/bin/chroot /mnt /sbin/init "$@";<br> <p> something like that. Of course you can wrap that into a nice C program, but if it works without, you'll probably spare the extra binary.<br> </div> Thu, 05 Feb 2009 08:18:25 +0000 Dracut looks to replace the initramfs patchwork https://lwn.net/Articles/318031/ https://lwn.net/Articles/318031/ jake <div class="FormattedComment"> <font class="QuotedText">&gt; Hmm, I wonder if it's worth writing an LWN article on initramfs-tools</font><br> <font class="QuotedText">&gt; pimping it a little harder? Anyone interested in seeing it?</font><br> <p> Not only are we interested in seeing it, we are interested in paying for it :) See the "Write for LWN" link at the top and if you are still interested, let's talk ...<br> <p> jake<br> </div> Thu, 05 Feb 2009 04:36:20 +0000 Dracut looks to replace the initramfs patchwork https://lwn.net/Articles/318027/ https://lwn.net/Articles/318027/ linuxjacques <div class="FormattedComment"> I would love to see an initramfs-tools article.<br> <p> I do embedded and when I hear glibc and bash I think they must be joking.<br> <p> </div> Thu, 05 Feb 2009 04:15:53 +0000 Dracut looks to replace the initramfs patchwork https://lwn.net/Articles/318021/ https://lwn.net/Articles/318021/ jbailey <div class="FormattedComment"> (obDisclosure: I am the original author and designer of initramfs-tools)<br> <p> The reason the question keeps coming up about why not reuse the initramfs-<br> tools code is because by the design of Dracut, it looks like they're trying <br> to produce the exact same thing that we did, about 3 years after we wrote <br> that one. Judging by the git tree, it looks like the authors haven't <br> bothered to look at what existing initramfs' in distros already do. <br> (Something which I did extensively before writing it. It wasn't like I <br> *wanted* to do this, just that all of the distros were still using <br> pivot_root at the time and I'd recently attended a talk at OLS where we <br> were told this method of booting was going away)<br> <p> My biggest concerns are things like the authors apparently not being <br> interested in klibc (initramfs-tools uses that to get a nice small shell <br> and for embedded cases producing initramfs' that are a fraction the size of <br> glibc, never mind glibc plus the userspace tools), their use of bashisms, <br> and the fact that they're starting quite far behind on different boot <br> scenarios.<br> <p> Hmm, I wonder if it's worth writing an LWN article on initramfs-tools <br> pimping it a little harder? Anyone interested in seeing it?<br> <p> Tks,<br> Jeff Bailey<br> <p> </div> Thu, 05 Feb 2009 03:36:44 +0000 Dracut looks to replace the initramfs patchwork https://lwn.net/Articles/318020/ https://lwn.net/Articles/318020/ jbailey <div class="FormattedComment"> pivot_root requires an older-style initrd. It doesn't work with an <br> initramfs at all.<br> <p> </div> Thu, 05 Feb 2009 03:22:22 +0000 Dracut looks to replace the initramfs patchwork https://lwn.net/Articles/318015/ https://lwn.net/Articles/318015/ me@jasonclinton.com <div class="FormattedComment"> I'll be surprised if this goes anywhere other than to replace RH's aging, crufty initfs system--so, they need to do the work anyway. I'm glad that they are working on something else--it's a total pain to modify it now.<br> <p> But, here's why I don't think anyone else will adopt it: I worked for a company a few years ago that built a custom thin-client software stack. I wrote all of the initramfs integration. At the time the project started, I looked around for a nice framework that already existed that I could just reuse so that I didn't have to reinvent the wheel. I evaluated every distro's initramfs generation framework. In short, they all have terrible kludges and assumptions about the host OS and requirements EXCEPT for Debian's initramfs-tools. The design is simple, elegant and completely agnostic. And it works in just about every boot case you can possibly imagine with a fully pluggable boot method system (which we abused liberally).<br> <p> I think it will take a few years for Dracut or any other solution to reach that level of maturity. And I just don't see any Debian-based system switching to Dracut until its forced on them--because what they have now is so, so nice.<br> <p> It's a shame that this is yet another Redhat NIH. (And I don't buy the explanation that it was done to encourage adoption. If it's the right technical solution, people will use it.)<br> <p> </div> Thu, 05 Feb 2009 02:54:22 +0000 Dracut looks to replace the initramfs patchwork https://lwn.net/Articles/318006/ https://lwn.net/Articles/318006/ miffe <div class="FormattedComment"> Hmm, my util-linux already contains a pivot_root, itn't that what the proposed switch_root woudld do?<br> <p> Or am I missing something?<br> </div> Thu, 05 Feb 2009 02:07:59 +0000