LWN: Comments on "LPC: Booting and systemd" https://lwn.net/Articles/458789/ This is a special feed containing comments posted to the individual LWN article titled "LPC: Booting and systemd". en-us Thu, 04 Sep 2025 09:06:52 +0000 Thu, 04 Sep 2025 09:06:52 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net DJB https://lwn.net/Articles/460209/ https://lwn.net/Articles/460209/ tialaramex <div class="FormattedComment"> It occurred to me today that we should at least thank Bernstein for Bernstein vs United States. Taking the US government to court is the sort of task which more or less requires one to be stubborn beyond reason, and there can be no doubt that, at least at first, this case was a factor in the relaxation of US laws controlling cryptography.<br> <p> But I still don't want to run his software.<br> </div> Fri, 23 Sep 2011 15:03:37 +0000 LPC: Booting and systemd https://lwn.net/Articles/460102/ https://lwn.net/Articles/460102/ Wol <div class="FormattedComment"> Does Grub2 do USB?<br> <p> Many mobos do not do proper USB-&gt;PS2 emulation (some don't do it at all) so if all you have is a usb keyboard, you're stuffed. You can't tell grub which option you want so you get the choice of default, default or default. Tough luck if your upgrade broke but you made that the default in order to test it ...<br> <p> For example, my mobo is broken some of the time - kernel upgrades are a pain because I never know whether my keyboard is going to work with grub or not :-(<br> <p> Cheers,<br> Wol<br> </div> Thu, 22 Sep 2011 22:29:06 +0000 LPC: Booting and systemd https://lwn.net/Articles/459508/ https://lwn.net/Articles/459508/ mathstuf <div class="FormattedComment"> When I had my 4GB SSD netbook, I did something like a 70MB ext2 /boot, 2GB /, 512MB of swap, and the rest for /home. If everything were /, I would have to format anyways for an upgrade (not enough space for the RPMs to upgrade with[1]). I also remember doing lvresize and other fun things to go from a 2GB /home to a 2GB / instead. Haven't used LVM since.<br> <p> [1]I actually did do a yum upgrade (from F10 to F11 IIRC) on the machine. The RPMs fit, but not with the upgrade going. I ended up having to SIGSTOP yum, delete cached RPMs that had finished installing for disk space, and the SIGCONT yum again. Not something I plan on doing again. Especially during class.<br> </div> Tue, 20 Sep 2011 16:06:09 +0000 LPC: Booting and systemd https://lwn.net/Articles/459484/ https://lwn.net/Articles/459484/ Cato <div class="FormattedComment"> If your only disk is a 4GB SSD on a notebook, don't use a separate /boot - just use ext3. You probably won't need LVM either.<br> </div> Tue, 20 Sep 2011 09:56:34 +0000 LPC: Booting and systemd https://lwn.net/Articles/459438/ https://lwn.net/Articles/459438/ Aissen <div class="FormattedComment"> Indeed, it has a lot of manpages. But since it's trying to take over a lot of software, I have the feeling it might not be enough.<br> Example: <a href="https://bugzilla.redhat.com/show_bug.cgi?id=677962#c4">https://bugzilla.redhat.com/show_bug.cgi?id=677962#c4</a><br> </div> Mon, 19 Sep 2011 21:33:03 +0000 LPC: Booting and systemd https://lwn.net/Articles/459417/ https://lwn.net/Articles/459417/ raven667 <div class="FormattedComment"> I'm not quite sure it's that bad, i've never had a server failure where LVM was a factor but I've had many times where LVM has saved my bacon with the ability to live upsize filesystems. I could see that on a desktop without battery backed write cache that LVM is probably not useful and trying to shrink live filesystems is fraught with peril but in the server use case it is very useful.<br> </div> Mon, 19 Sep 2011 18:26:02 +0000 LPC: Booting and systemd https://lwn.net/Articles/459330/ https://lwn.net/Articles/459330/ epa <div class="FormattedComment"> The difficulty is in having a separate /boot at all. You must allocate a fixed amount of space which is either too little or too much. With a 500 gigabyte disk it doesn't matter but on a netbook with a four gigabyte SSD it is painful to lose 10% of it to /boot.<br> <p> Earlier Fedora releases gave about a hundred megs to /boot but then cannot be upgraded to the latest Fedora version, since the upgrade process needs to put a disk image in there too. (There is a way to download the disk image over the network but for me it always hangs.)<br> </div> Mon, 19 Sep 2011 09:33:24 +0000 LPC: Booting and systemd https://lwn.net/Articles/459324/ https://lwn.net/Articles/459324/ raven667 <div class="FormattedComment"> As long as it has the information and _can_ load a kernel with options and _can_ present a UI I don't think the actual UI needs to be standard. I would expect it to be branded by the hardware vendor for example. As long as there is a standard place to put kernel images and a standard way to add/remove labeled boot entries and if you can manually boot custom options using the EFI shell then I think that would solve the problem. I don't think the actual UI needs to be standardized beyond that.<br> </div> Mon, 19 Sep 2011 03:44:15 +0000 LPC: Booting and systemd https://lwn.net/Articles/459316/ https://lwn.net/Articles/459316/ mjg59 <div class="FormattedComment"> There's no problem in configuring EFI to boot a kernel. The problem is in the UI that the firmware will expose to let you choose which kernel to boot or which boot arguments to pass. That's entirely non-standard, requires different keypresses on different hardware, looks different depending on a variety of circumstances and may not actually exist in any UI.<br> </div> Sun, 18 Sep 2011 21:39:48 +0000 LPC: Booting and systemd https://lwn.net/Articles/459315/ https://lwn.net/Articles/459315/ raven667 <div class="FormattedComment"> At the risk of backseat designing, it seems that all that is really necessary is the ability to provide a list of labels and not specify how they are displayed. One would think that by default it would just load whatever is set to be the default with minimal prompting unless a key is hit. This is similar to how GRUB is usually set up and how I think Mac's work right now.<br> <p> While it may be do-able to load modules for common filesystem types, as GRUB already does, so you can load kernels off them it seems more productive to be able to EFI boot the kernel directly and have the current and previous kernel images live on the EFI system partition. Basically make the EFI system partition replace the /boot directory.<br> </div> Sun, 18 Sep 2011 20:36:17 +0000 LPC: Booting and systemd https://lwn.net/Articles/459314/ https://lwn.net/Articles/459314/ mjg59 <div class="FormattedComment"> The spec isn't intended to provide UI, since that's something that's intended to integrate with the platform vendor's design. You could imagine some vendors being happy with a text-based menu with various boot options, but it doesn't seem plausible that, say, Sony would go for that over some sort of graphical UI.<br> <p> In any case, EFI doesn't require that the firmware be able to read arbitrary filesystems. If you want to boot a kernel off LVM or btrfs or even ext2, you need a bootloader sitting in the EFI system partition.<br> </div> Sun, 18 Sep 2011 20:15:05 +0000 LPC: Booting and systemd https://lwn.net/Articles/459312/ https://lwn.net/Articles/459312/ raven667 <div class="FormattedComment"> That's something that goes back to my original point of encouraging more participation in vendor committees and whatnot by not just concerned vendors who use and fund linux but also independent groups like the Linux Foundation. EFI already seems pretty capable so getting the rest of the small number of additional features in the spec that would be needed to fully replace something like GRUB might be do-able if you can talk to the right people.<br> </div> Sun, 18 Sep 2011 20:11:50 +0000 LPC: Booting and systemd https://lwn.net/Articles/459310/ https://lwn.net/Articles/459310/ raven667 <div class="FormattedComment"> That seems like a perfectly reasonable trade-off. As a practical matter, how often does the kernel interface have incompatible changes such that forces the need for a new bootloader. EFI and GRUB can already just load an arbitrary boot sector if you want a layered approach but from what little experience I have with EFI (just started working with it last week) it seems nearly capable enough.<br> <p> Interestingly enough, elsewhere in LWN was a report of progress in making a linux kernel image that is directly bootable from EFI.<br> </div> Sun, 18 Sep 2011 20:06:05 +0000 LPC: Booting and systemd https://lwn.net/Articles/459309/ https://lwn.net/Articles/459309/ mjg59 <div class="FormattedComment"> Right now the kernel isn't an EFI executable, so an additional bootloader is required in order to relocate it, set up the boot parameters structure, load an initrd if necessary and then jump to the kernel's entry point. There's ongoing work to make it possible to execute the kernel directly from EFI, with the command line arguments being provided directly. That's fine for the trivial case, but we'll still require a bootloader of some description if only to provide the user with their boot choices. While the EFI spec does support providing multiple boot choices that the user can select between, there's no specification for what the UI should look like. That's less than ideal.<br> </div> Sun, 18 Sep 2011 18:40:26 +0000 LPC: Booting and systemd https://lwn.net/Articles/459308/ https://lwn.net/Articles/459308/ giraffedata But there's a reason for all the layers involved in bringing up a system. Each one has a different tradeoff of simplicity and stability versus flexibility, each one has a separate dependence on other components of the system, and so on. <p> One could squeeze the GRUB and EFI layers into one, but look what you'd lose: Today, if I want to start determining kernel parameters in a new way, I can just update GRUB on my boot disk. If I mess it up so the system won't boot, that's OK - I can just tell EFI to boot from my backup boot disk (maybe a rescue CD) and fix it. But if all that parameter stuff was in EFI, I would have to flash a new EFI onto the motherboard, which isn't as easy. And if I screw it up, I might have a brick. <p> We can argue forever on how many layers are optimal, and what should go in each one (I'm hearing more and more opinions that GRUB2 has features that would better reside at the Linux kernel layer), but it's clear that having lots of bootstrap layers can be useful. Sun, 18 Sep 2011 18:26:02 +0000 LPC: Booting and systemd https://lwn.net/Articles/459305/ https://lwn.net/Articles/459305/ raven667 <div class="FormattedComment"> I suppose EFI systems don't have a way to pass parameters to the kernel, otherwise on newer systems there would seem to be less need for a separate bootloader at all. Presuming that EFI can't pass parameters (or an initrd) that seems like a missed opportunity for the Linux community to get native booting into the standard. Sometimes it seems like linux kernel developers don't participate in the right vendor clubs to influence the design of hardware and standards and end up needing to conform after the fact. <br> <p> I'm just kind of talking out of my rear end here so maybe it's not like that at all but that's the sense that I get sometimes.<br> <p> I wonder if grub EFI is an EFI loadable module or a more traditional x86 bootloader, something like that could have just been specified in the standard such that EFI could natively boot Win*, Linux, *BSD, etc. on common filesystems without any further installs or intermediaries. That would probably require compromise on the design which is always hard to get.<br> </div> Sun, 18 Sep 2011 17:14:00 +0000 LPC: Booting and systemd https://lwn.net/Articles/459298/ https://lwn.net/Articles/459298/ nix <div class="FormattedComment"> Did I need sarcasm tags? I was trying to say 'any claims that systemd has no documentation must cater for the fact that sysvinit has dramatically less'.<br> </div> Sun, 18 Sep 2011 13:27:49 +0000 LPC: Booting and systemd https://lwn.net/Articles/459248/ https://lwn.net/Articles/459248/ giraffedata <blockquote> Maybe we should just go back to LILO. Why boot an intermediate kernel with some added complexity if you can just boot the real one, instead. </blockquote> <p> Because you'd like to have a choice at boot time of kernels and kernel parameters. Hence the intermediate program, be it LILO, GRUB, or Linux. <p> If you really don't want that boot-time choice, then you should step back beyond LILO to the system that simply loads the first N blocks from the disk and branches to it. That can be your Linux boot image, with built-in parameters. <p> Even LILO is dependent on Linux filesystem design more than is desirable. It assumes a file is simply the content of a sequence of blocks, and that that sequence is static. A modern filesystem should not be bound to that. Sat, 17 Sep 2011 00:20:46 +0000 LPC: Booting and systemd https://lwn.net/Articles/459233/ https://lwn.net/Articles/459233/ jwakely <div class="FormattedComment"> I always disable LVM on my own systems, I don't feel as though I'm missing out.<br> </div> Fri, 16 Sep 2011 18:25:51 +0000 LPC: Booting and systemd https://lwn.net/Articles/459229/ https://lwn.net/Articles/459229/ jrn <div class="FormattedComment"> <font class="QuotedText">&gt; GRUB2 requires running an installer after any change, such as installing a newly built kernel. Forget that step and kaboom!</font><br> <p> Forget that step and you have to type the name of the kernel by hand, you mean, right?<br> </div> Fri, 16 Sep 2011 17:34:20 +0000 LPC: Booting and systemd https://lwn.net/Articles/459224/ https://lwn.net/Articles/459224/ jmorris42 <div class="FormattedComment"> <font class="QuotedText">&gt; If you've never seen a system with a blank screen except for</font><br> <font class="QuotedText">&gt; "LI" then you've not been using Linux very long!</font><br> <p> Well what is old is now new again. GRUB2 requires running an installer after any change, such as installing a newly built kernel. Forget that step and kaboom! Well you get the old config with no mention of the newly installed kernel if you weren't so unwise as to get rid of the current running kernel before rebooting but we still went backward with GRUB2.<br> </div> Fri, 16 Sep 2011 17:19:51 +0000 LPC: Booting and systemd https://lwn.net/Articles/459222/ https://lwn.net/Articles/459222/ mezcalero <div class="FormattedComment"> systemd is not all PID 1. In fact we are very modular and ship 40 separate binaries or so.<br> </div> Fri, 16 Sep 2011 17:10:32 +0000 LPC: Booting and systemd https://lwn.net/Articles/459221/ https://lwn.net/Articles/459221/ jeremiah <div class="FormattedComment"> As long as there is enough documentation to fix/diagnose problems when you're somewhere without an internet connection. <br> </div> Fri, 16 Sep 2011 16:39:29 +0000 LPC: Booting and systemd https://lwn.net/Articles/459208/ https://lwn.net/Articles/459208/ rahulsundaram <div class="FormattedComment"> Nonsense. Blog posts *are* documentation and man pages are reference documentation. systemd has both. <br> </div> Fri, 16 Sep 2011 15:26:40 +0000 LPC: Booting and systemd https://lwn.net/Articles/459203/ https://lwn.net/Articles/459203/ Cato <div class="FormattedComment"> LVM is not an unalloyed win, to say the least, and requires some skill to set up correctly. See <a href="http://serverfault.com/questions/279571/lvm-dangers-and-caveats">http://serverfault.com/questions/279571/lvm-dangers-and-c...</a> for some issues.<br> </div> Fri, 16 Sep 2011 14:44:01 +0000 LPC: Booting and systemd https://lwn.net/Articles/459202/ https://lwn.net/Articles/459202/ Cato <div class="FormattedComment"> GRUB2 does support LVM, but I prefer to always use a non-LVM /boot partition. In fact, if everyone used boring filesystems such as ext3 for /boot, there would be no need for exotic filesystems in GRUB at all. Since /boot is small, slow changing and rarely needs resizing, I can't see the point of anything beyond ext3.<br> </div> Fri, 16 Sep 2011 14:38:26 +0000 LPC: Booting and systemd https://lwn.net/Articles/459201/ https://lwn.net/Articles/459201/ bronson <div class="FormattedComment"> Completely the opposite! After getting burned bad by that corruption bug a few years ago, and trying to untangle spaghetti PVs scattered needlessly by lazy sysadmins, I avoid LVM when I can. For most Linux installs it's needless complexity and a bad temptation.<br> <p> Yes, I'll still use it for a server that needs it. But with fast SSDs and contiguous 3TB for $120, I haven't needed it for 4 or 5 years.<br> </div> Fri, 16 Sep 2011 14:35:36 +0000 LPC: Booting and systemd https://lwn.net/Articles/459192/ https://lwn.net/Articles/459192/ jond <div class="FormattedComment"> This sub-thread amazes me somewhat, because I thought everyone long ago moved to use LVM in nearly all situations.<br> </div> Fri, 16 Sep 2011 13:19:53 +0000 LPC: Booting and systemd https://lwn.net/Articles/459191/ https://lwn.net/Articles/459191/ jond <div class="FormattedComment"> F15 puts X on 1.<br> </div> Fri, 16 Sep 2011 13:15:19 +0000 LPC: Booting and systemd https://lwn.net/Articles/459166/ https://lwn.net/Articles/459166/ AndreE <div class="FormattedComment"> I like this approach.<br> <p> Documentation comprehensiveness being directly related to software bloat would give me a compelling argument to give to my boss when asks me to provide thorough documentation for my code<br> </div> Fri, 16 Sep 2011 03:39:08 +0000 LPC: Booting and systemd https://lwn.net/Articles/459151/ https://lwn.net/Articles/459151/ bronson <div class="FormattedComment"> I highly doubt that. systemd is big but it's all in one process. No single human on this planet understands all of modern sysvinit.<br> </div> Thu, 15 Sep 2011 22:24:09 +0000 LPC: Booting and systemd https://lwn.net/Articles/459126/ https://lwn.net/Articles/459126/ JEFFREY <div class="FormattedComment"> IMHO Blog posts don't count as documentation. They are far too transient. Documentation should not require the use of web.archive.org.<br> <p> AFAIK it's not documentation, if it's not distributed with the source.<br> <p> Accurate man pages, and anything that `make install` (or whatever packaging system you use) puts in /usr{,/local}/share/doc *is* documentation.<br> </div> Thu, 15 Sep 2011 18:17:31 +0000 LPC: Booting and systemd https://lwn.net/Articles/459125/ https://lwn.net/Articles/459125/ dlang <div class="FormattedComment"> I much prefer fixing and troubleshooting lilo boot problems compared to grub boot problems<br> <p> yes, it's easier to trigger lilo problems, but when grub doesn't just 'do the right thing', figuring out how to fix it seems to be much harder.<br> </div> Thu, 15 Sep 2011 18:06:44 +0000 LPC: Booting and systemd https://lwn.net/Articles/459102/ https://lwn.net/Articles/459102/ rfunk <div class="FormattedComment"> GRUB does have a limited command line allowing some level of file browsing, as I recall.<br> </div> Thu, 15 Sep 2011 15:12:04 +0000 LPC: Booting and systemd https://lwn.net/Articles/459101/ https://lwn.net/Articles/459101/ rfunk <div class="FormattedComment"> In my experience X is normally on 7 or 8. But then I've been using Ubuntu (and before that Debian) for quite a while now, so I'm not sure how the others do it these days.<br> </div> Thu, 15 Sep 2011 15:09:43 +0000 LPC: Booting and systemd https://lwn.net/Articles/459091/ https://lwn.net/Articles/459091/ faramir <div class="FormattedComment"> There is also kexec-loader<br> <p> <a href="http://www.solemnwarning.net/kexec-loader/">http://www.solemnwarning.net/kexec-loader/</a><br> <p> which will fit on a floppy and can more or less read GRUB1 config files.<br> </div> Thu, 15 Sep 2011 15:06:16 +0000 LPC: Booting and systemd https://lwn.net/Articles/459087/ https://lwn.net/Articles/459087/ epa <div class="FormattedComment"> Even GRUB isn't as friendly as it could be; I have often longed for a simple file browser with 'cd' and 'ls' commands to find the kernel and initrd to boot. Part of what makes it awkward is LVM, which isn't very discoverable (there's no command to 'list available LVM devices and ask me which ones to mount', least of all from the GRUB command line), so it will be great when LVM goes away.<br> <p> A simple command interpreter built into the kernel would also be a great help, e.g. when it can't find the root filesystem or /sbin/init.<br> </div> Thu, 15 Sep 2011 15:02:25 +0000 LPC: Booting and systemd https://lwn.net/Articles/459080/ https://lwn.net/Articles/459080/ bcl <div class="FormattedComment"> As of F16 new installs use GPT. The future is now! <br> <p> UEFI boots from a vfat partition so yes, there is enough space (we already support EFI) but it isn't stored in the MBR.<br> </div> Thu, 15 Sep 2011 14:24:04 +0000 LPC: Booting and systemd https://lwn.net/Articles/459076/ https://lwn.net/Articles/459076/ wfp5p <div class="FormattedComment"> I expected systemd to be tremendous PITA at first. However, it's not been a hassle for me at all. At least, not as it's implemented in Fedora 15. I don't have 100s of machines running it, but I have far more than 3.<br> </div> Thu, 15 Sep 2011 13:54:35 +0000 LPC: Booting and systemd https://lwn.net/Articles/459073/ https://lwn.net/Articles/459073/ dan_a <div class="FormattedComment"> <font class="QuotedText">&gt; Maybe we should just go back to LILO. Why boot an intermediate kernel with some added complexity if you can just boot the real one, instead.</font><br> <p> I quite enjoy doing kernel upgrades with GRUB. If you've never seen a system with a blank screen except for "LI" then you've not been using Linux very long!<br> </div> Thu, 15 Sep 2011 13:20:09 +0000