LWN: Comments on "Poettering: The Wondrous World of Discoverable GPT Disk Images" https://lwn.net/Articles/859240/ This is a special feed containing comments posted to the individual LWN article titled "Poettering: The Wondrous World of Discoverable GPT Disk Images". en-us Fri, 19 Sep 2025 14:56:39 +0000 Fri, 19 Sep 2025 14:56:39 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net Painting yourself into a corner with GPT UUIDs https://lwn.net/Articles/860094/ https://lwn.net/Articles/860094/ Gladrim <div class="FormattedComment"> Seemed more like the OP admitting his bias than any kind of personal attack.<br> </div> Thu, 17 Jun 2021 11:46:12 +0000 Painting yourself into a corner with GPT UUIDs https://lwn.net/Articles/860077/ https://lwn.net/Articles/860077/ roblucid <div class="FormattedComment"> As a former sysadmin, these kind of automatic systems seem nice until something goes wrong, then you find yourself with a system that syncs up to the wrong disk. Under pressure you have no idea why and you have to rebuild the system part from scratch. Hopefully you maintained a clear seperation of user data and can get the service back fast on a duplicate server.<br> <br> The auto part doesn&#x27;t help the admin much, but it means replacing OS disks requires an understanding of these developer&#x27;s specs.<br> Lennart unfortunately in the past stubbornly insisted that /usr had to be in the same partition as / and said no one bothered with disk partitions on modern systems. OpenSUSE actually solved it simply by mounting &amp; remounting /usr as part of the ram disk startup, which showed it was perfectly feasible to be more flexible.<br> I still don&#x27;t see any focus on solving other people&#x27;s problems in the blog, it&#x27;s about defining HIS configuration data as a standard and making systemd implementation easier.<br> <p> The big mistake was SysV&#x27;s move away from /etc config files for scripts and hidden state.<br> Instead of human readable config tables used by a daemon, slow inefficient scripts had to be run to change my and update state. It stymied GUI admin programs because there wasn&#x27;t a single source for the data they needed to manipulate.<br> </div> Thu, 17 Jun 2021 08:54:49 +0000 Painting yourself into a corner with GPT UUIDs https://lwn.net/Articles/860076/ https://lwn.net/Articles/860076/ roblucid <div class="FormattedComment"> But, when migrating systems I would often boot an OS on a different disk from the boot manager.<br> Switching onto a newly prepared disk, might mean booting the old OS partition in the case of an oversight.<br> The irony is that fstab(5) was designed as the mount(8) configuration file, it is by definition machine readable but convenient for a competent sysadmin.<br> When SysV and Solaris &quot;improved&quot; BSD style config files the result was a mess, it actually worsened configuration visibility by hiding state in data files. To understand a running system remotely, I&#x27;d have to run a utility to display the disk partitions.<br> To me Lennart is trying to optimise for an installer that is run once, or maybe never (I used to clone machines with dd(1)).<br> The installer creates an fstab(5), it could create the GRUB file too, Linux mount was able to use labels or uids.<br> </div> Thu, 17 Jun 2021 08:14:45 +0000 Poettering: The Wondrous World of Discoverable GPT Disk Images https://lwn.net/Articles/859974/ https://lwn.net/Articles/859974/ lsl <div class="FormattedComment"> <font class="QuotedText">&gt; and could normally be disabled on bare-metal unless you really *were* in a dynamic networking environment;.</font><br> <p> Not at all. Without something like biosdevname or the PredictableInterfaceNames thing, your interface names may be shuffled around at every other reboot on many, if not most, servers (basically everything with &gt;1 NIC).<br> <p> It&#x27;s unnecessary for VMs with a single network interface, but just don&#x27;t use it there? Eth0 is what you get by default when using the Fedora and EL cloud images, so nothing to do there.<br> </div> Wed, 16 Jun 2021 14:53:39 +0000 Poettering: The Wondrous World of Discoverable GPT Disk Images https://lwn.net/Articles/859949/ https://lwn.net/Articles/859949/ intgr <div class="FormattedComment"> <font class="QuotedText">&gt; There have been a lot of silly notions coming from the author of systemd over the years that we now have to deal with on the ground.</font><br> <p> OK you had one example. But what are the other ones?<br> <p> When it comes to interface names, I sort of emphatise with both sides: it seemed like a problem worth solving, and I think they did a decent job given the constraints, but I also see how it needlessly complicates configuration in places that don&#x27;t need it.<br> <p> I&#x27;ve read most articles on Lennart&#x27;s blog and from my point of view nearly all of the changes he describes are improvements. Not saying perfect, but they&#x27;re finally working on areas of Linux that were previously neglected for decades.<br> <p> </div> Wed, 16 Jun 2021 12:05:49 +0000 Painting yourself into a corner with GPT UUIDs https://lwn.net/Articles/859881/ https://lwn.net/Articles/859881/ nix <div class="FormattedComment"> <font class="QuotedText">&gt; The GPT autodiscovery logic described in the article will only automount partitions from the same physical disk whose bootloader was booted from. Am I missing something?</font><br> <p> No, I was. It should even be safe if you accidentally boot from the wrong disk: a consistent set of fses will be picked regardless. (Well, as long as neither system uses /etc/fstab but only systemd mountpoint generators, which describes precisely zero systems I have ever seen, and will probably only be able to handle simple cases in any case -- but of course, that describes most systems, and almost all non-server systems. My laptop has one big fs, even if the server has dozens.)<br> </div> Tue, 15 Jun 2021 18:19:22 +0000 Poettering: The Wondrous World of Discoverable GPT Disk Images https://lwn.net/Articles/859777/ https://lwn.net/Articles/859777/ tzafrir <div class="FormattedComment"> Elsewhere in the &quot;VM&quot; space, Xenserver tried to tackle the same issue. They added a mechanism to keep persistent interface names for eth* network interfaces. It worked.<br> <p> ... by renaming them to temporary names when they appear and then renaming them back &quot;when they all appeared&quot; (on an explicit run of a specific program).<br> <p> And this is only one of many kludges attempting to maintain persistent names for eth* interfaces.<br> </div> Tue, 15 Jun 2021 11:13:16 +0000 Poettering: The Wondrous World of Discoverable GPT Disk Images https://lwn.net/Articles/859769/ https://lwn.net/Articles/859769/ bluca <div class="FormattedComment"> New architectures are added as needed. Nobody requested the ones you mentioned so far. If they support GPT and you need support for them, please send a PR.<br> </div> Tue, 15 Jun 2021 09:43:44 +0000 Poettering: The Wondrous World of Discoverable GPT Disk Images https://lwn.net/Articles/859768/ https://lwn.net/Articles/859768/ geert <div class="FormattedComment"> CONFIG_EFI_PARTITION defaults to yes since commit 5f6f38dbb0fc8518 (&quot;partitions: enable EFI/GPT support by default&quot;) in v3.8, under the premise that GPT is now (2013) commonly used.<br> Looking at the defconfigs, only some old m68k and MIPS machines, microblaze, and riscv nommu disable it explicitly.<br> </div> Tue, 15 Jun 2021 09:39:26 +0000 Poettering: The Wondrous World of Discoverable GPT Disk Images https://lwn.net/Articles/859767/ https://lwn.net/Articles/859767/ farnz <p>It's the architectures that can use UEFI to boot - GPT is the UEFI partition format. <p>PowerPC and S/390 don't boot via UEFI, hence omitted. Tue, 15 Jun 2021 09:28:54 +0000 Poettering: The Wondrous World of Discoverable GPT Disk Images https://lwn.net/Articles/859762/ https://lwn.net/Articles/859762/ geert <div class="FormattedComment"> For now, this seems to have support for only a subset of architectures capable of running Linux: x86, x86-64, arm32, arm64, ia64, rv32, rv64.<br> No idea why ia64 made the list, while e.g. powerpc and s390 are missing.<br> </div> Tue, 15 Jun 2021 08:45:45 +0000 Poettering: The Wondrous World of Discoverable GPT Disk Images https://lwn.net/Articles/859738/ https://lwn.net/Articles/859738/ jamesh <div class="FormattedComment"> This kind of reminds me of the mount scheme of some pre-Fedora versions of Red Hat Linux, where volume labels would be set to preferred mount points, and the /etc/fstab file identified file systems with e.g. &quot;LABEL=/home&quot;. While it fixed the problem of file systems changing device name when moving disks from one controller to another, it really didn&#x27;t work well if you had two installs connected to the same computer, and was replaced by the UUID system most distros use today.<br> <p> This spec seems to cover the common failure modes of that old scheme, so could be quite useful. Outside of containers/VMs, the behaviour of picking the newest root file system if multiple ones are found on the disk should be quite useful for transactionally updated embedded systems. All that&#x27;s really needed is something to automatically revert to the old image if booting the new one fails.<br> </div> Tue, 15 Jun 2021 03:13:00 +0000 Poettering: The Wondrous World of Discoverable GPT Disk Images https://lwn.net/Articles/859736/ https://lwn.net/Articles/859736/ rahulsundaram <div class="FormattedComment"> <font class="QuotedText">&gt; My original point stands</font><br> <p> I don&#x27;t think it does. Going back to what you originally said:<br> <p> <font class="QuotedText">&gt; Remember when we dropped eth0 being your ethernet interface on simple VMs because Lennart was concerned about laptop wifi?</font><br> <p> 1) Laptop wifi was certainly not used as rationale for the udev change and you have conceded as much already.<br> 2) It wasn&#x27;t driven by Lennart and you have now admitted to that as well. When you use specific names, it has to be meaningful. Otherwise, making it personal isn&#x27;t justifiable. <br> <p> You might not like the change personally and it is neither here nor there but you have to be accurate about your characterization.<br> </div> Tue, 15 Jun 2021 02:25:24 +0000 Poettering: The Wondrous World of Discoverable GPT Disk Images https://lwn.net/Articles/859733/ https://lwn.net/Articles/859733/ jccleaver <div class="FormattedComment"> <font class="QuotedText">&gt; Laptops were not used a justification anywhere that I am aware of.</font><br> <p> Laptops were the use-case cited for a number of low level infrastructure changes around this time intended to make networking better in dynamic environments. That&#x27;s all fine and dandy, but server admins don&#x27;t need or want this. So-called &quot;predictable interfaces&quot; were anything but, especially in an era when kickstart servers were the most likely provisioning method in use in the RH ecosystem.<br> <p> <font class="QuotedText">&gt; It came from Dell called Biosdevname and was driven entirely by server concerns and it landed in Fedora 15</font><br> <p> I&#x27;m aware of this. Was running a Dell shop both before and after this was introduced (although mostly in EL land, not running Fedora Server for the most part). biosdevname was useful only in very specific situations, and could normally be disabled on bare-metal unless you really *were* in a dynamic networking environment. This was the exception, not the rule. Regardless, it was inapplicable to VMs.<br> <p> <font class="QuotedText">&gt; Also it was driven by Kay Sievers as the udev maintainer and not Lennart.</font><br> The &quot;systemd cabal&quot; is one and the same here for all intents and purposes. <br> <p> My original point stands: A variety of &quot;silly notions&quot; ended up affecting everyone because they wanted to make weird special use cases easier. In the networking example, replacing the mostly-predictable &quot;eth0&quot; with a unique string on any given box, e.g. &quot;enp5s0&quot;, and justifying the increased complexity on being able to swap out a blown NIC (?!) was not a win. I brought it up my first comment because replacing existing partition mechanisms (which mostly work), or even human-readable LVM labels, with UUIDs I have to look up strikes me as a similarly unjustified normalized obfuscation. And there&#x27;s a history of &quot;optional&quot; things getting steadily less optional.<br> </div> Tue, 15 Jun 2021 02:17:05 +0000 Poettering: The Wondrous World of Discoverable GPT Disk Images https://lwn.net/Articles/859731/ https://lwn.net/Articles/859731/ jccleaver <div class="FormattedComment"> <font class="QuotedText">&gt; These people have obviously never installed a second Ethernet card in a computer and noticed that their eth0 is now suddenly eth1 and all their routing tables and firewall rules no longer work right</font><br> <p> I have installed many a NIC in a physical machine, and much more rarely had to add in virtual network hardware. If I&#x27;m re-arranging hardware like that, I&#x27;m *expecting* there to be the possibility of side-effects, but most of that was avoided by using MACs properly. And on the VM side, you&#x27;d either remove hardware address affinity, or make sure you&#x27;re moving the MAC around during a VMotion. It&#x27;s not complicated, and the few annoyances out there were handled easily enough. For every one server with 6 NICs we had hundreds of VMs where it didn&#x27;t mean anything.<br> <p> <font class="QuotedText">&gt; and just as obviously haven&#x27;t read the “predictable interface names” document to the end where it explains three different straightforward methods for making sure the scheme is not used.</font><br> <p> I certainly have; the justifications given are laughably rare, and the workarounds are either:<br> a) remove the entirety of a config (the systemd way: accept all of our nudges or go off the reservation),<br> b) roll all of your own names manually (if I&#x27;m doing super complex routing I&#x27;m already doing this; a single-interface VM doesn&#x27;t need it), or <br> c) add to your kernel command line for the rest of your life (including initial installs at first)<br> <p> This implementation was a needless cluster F of a system that worked fine for 99.9+% of cases, and the added complexity directly led to BZ#1391944.<br> </div> Tue, 15 Jun 2021 02:03:40 +0000 Poettering: The Wondrous World of Discoverable GPT Disk Images https://lwn.net/Articles/859732/ https://lwn.net/Articles/859732/ rahulsundaram <div class="FormattedComment"> <font class="QuotedText">&gt; The &quot;laptop&quot; callout was a bit of hyperbole, but laptops for developers at Starbucks were used as a justification for a variety of Fedora changes that trickled down into EL rebuilds after this time running on servers</font><br> <p> You admit now that the laptop claim was hyperbolic but what you stated here still appears to be quite misleading. Laptops were not used a justification anywhere that I am aware of. It is not mentioned in the article you linked to nor in the feature proposals within Fedora. In fact the first naming effort had nothing to do with systemd at all. It came from Dell called Biosdevname and was driven entirely by server concerns and it landed in Fedora 15<br> <p> <a href="https://fedoraproject.org/wiki/Features/ConsistentNetworkDeviceNaming">https://fedoraproject.org/wiki/Features/ConsistentNetwork...</a><br> <p> The udev naming scheme came much later in Fedora 19 and only really took priority in Fedora 21<br> <p> <a href="https://fedoraproject.org/wiki/Features/SystemdPredictableNetworkInterfaceNames">https://fedoraproject.org/wiki/Features/SystemdPredictabl...</a><br> <p> Also it was driven by Kay Sievers as the udev maintainer and not Lennart. <br> <p> </div> Tue, 15 Jun 2021 02:02:38 +0000 Poettering: The Wondrous World of Discoverable GPT Disk Images https://lwn.net/Articles/859730/ https://lwn.net/Articles/859730/ jccleaver <div class="FormattedComment"> <font class="QuotedText">&gt; Don&#x27;t remember that. Do you have a source for this claim?</font><br> <p> <a href="https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/">https://www.freedesktop.org/wiki/Software/systemd/Predict...</a><br> <p> The &quot;laptop&quot; callout was a bit of hyperbole, but laptops for developers at Starbucks were used as a justification for a variety of Fedora changes that trickled down into EL rebuilds after this time running on servers. You&#x27;ll have to forgive me for thinking that the zillions of Linux VMs out there with the simplest possible ethernet interface setup should be the default use case. All of the justifications listed there are pretty laughable when you consider the collateral effect.<br> </div> Tue, 15 Jun 2021 01:44:14 +0000 Poettering: The Wondrous World of Discoverable GPT Disk Images https://lwn.net/Articles/859723/ https://lwn.net/Articles/859723/ anselm <p> Remember that for some people, Lennart Poettering is personally responsible for everything they don't like about Linux. </p> <p> It's true that the “predictable interface names” approach comes from the systemd (or, really, udev) crowd. IMHO predictable network interface names are a good idea in principle, but there are those who appear to take exception to the fact that what used to be <tt>eth0</tt> now tends to be called <tt>enp2s0</tt> or something. These people have obviously never installed a second Ethernet card in a computer and noticed that their <tt>eth0</tt> is now suddenly <tt>eth1</tt> and all their routing tables and firewall rules no longer work right, and just as obviously haven't read the “predictable interface names” document to the end where it explains three different straightforward methods for making sure the scheme is not used. </p> Mon, 14 Jun 2021 22:23:35 +0000 Poettering: The Wondrous World of Discoverable GPT Disk Images https://lwn.net/Articles/859719/ https://lwn.net/Articles/859719/ rahulsundaram <div class="FormattedComment"> <font class="QuotedText">&gt; Remember when we dropped eth0 being your ethernet interface on simple VMs because Lennart was concerned about laptop wifi? </font><br> <p> Don&#x27;t remember that. Do you have a source for this claim?<br> </div> Mon, 14 Jun 2021 21:48:12 +0000 Poettering: The Wondrous World of Discoverable GPT Disk Images https://lwn.net/Articles/859716/ https://lwn.net/Articles/859716/ jccleaver <div class="FormattedComment"> <font class="QuotedText">&gt; Nobody (least of all Lennart Poettering) said that this was supposed to replace /etc/fstab in its full generality, which would be a silly notion.</font><br> <p> There have been a lot of silly notions coming from the author of systemd over the years that we now have to deal with on the ground. Remember when we dropped eth0 being your ethernet interface on simple VMs because Lennart was concerned about laptop wifi? <br> <p> The Slippery Slope Argument is not a logical fallacy if there&#x27;s plenty of slope to induce from. Hesitation is warranted here IMHO.<br> </div> Mon, 14 Jun 2021 21:28:04 +0000 Painting yourself into a corner with GPT UUIDs https://lwn.net/Articles/859706/ https://lwn.net/Articles/859706/ intgr <div class="FormattedComment"> <font class="QuotedText">&gt; It looks like exactly the same advantages, and problems, as automounting RAID arrays</font><br> <font class="QuotedText">&gt; it can happen unexpectedly when you attach it to an existing machine which already has an fs of the specified type</font><br> <p> The GPT autodiscovery logic described in the article will only automount partitions from the same physical disk whose bootloader was booted from. Am I missing something?<br> <p> As long as the attached disk is a separate disk, there&#x27;s no risk of unexpected mounts. RAID does not have this advantage, because it spans multiple physical disks.<br> <p> </div> Mon, 14 Jun 2021 20:07:59 +0000 Poettering: The Wondrous World of Discoverable GPT Disk Images https://lwn.net/Articles/859698/ https://lwn.net/Articles/859698/ Pc5Y9sbv <div class="FormattedComment"> I wonder, would the spec benefit from using a tree of normative namespace UUIDs and hash-based UUID generation, like you can produce using the Python uuid.uuid5(namespace, name) routine? I realized you&#x27;d still need a list of recognized UUIDs to be known by a particular instance of the bootloader, since the hashes aren&#x27;t really reversible. But, this could be easier to manage if it were a simple list of human-readable strings or namespace IDs which can be converted into the UUIDs that will get encoded in the partition tables and bootloaders.<br> <p> With hashing, you would get deterministic UUIDs for specific mount point scenarios, so you can predict and coordinate usage of UUIDs across drafts or custom builds of the tooling. Depending on how deep you want this to go, you could standardize a namespace hierarchy and hashing scheme to encode binary platform, mountpoint paths, and even mount option strings. The spec, codebase, or build-time tooling could share a human readable table of mountpoints which could be trivially extended by the community, converging on the same UUIDs for the same purposes no matter who first tries to coin a new mountpoint variation.<br> </div> Mon, 14 Jun 2021 19:14:26 +0000 Question: Does this make UUIDs non-unique? https://lwn.net/Articles/859673/ https://lwn.net/Articles/859673/ ausserirdischesindgesund <div class="FormattedComment"> Makes sense, thanks!<br> </div> Mon, 14 Jun 2021 15:49:13 +0000 Poettering: The Wondrous World of Discoverable GPT Disk Images https://lwn.net/Articles/859604/ https://lwn.net/Articles/859604/ mezcalero <div class="FormattedComment"> You can have images this way that are truly universal, i.e. work on x86-64 and aarch64 the same way for example. i.e. let&#x27;s say you prep an nspawn container and want it to be deployable on both your x86-64 and your aarch64 servers. Using this you can easily do so.<br> <p> Or consider a disk image you can copy to USB and then boot on any kind of system you have handy as long as it speaks UEFI. i.e. think about Apple desktop systems which switched between ppc, x86-64 and now aarch64 in not so long ago time. You could relatively naturally build a single OS image that you then can booth on either of them.<br> <p> But you know, I don&#x27;t want to convince you that this is the ideal way to do that, or if it&#x27;s even a totally worthy goal, but the logic behind it is trivial (we just use different type uuids for each arch), so there&#x27;s nothing lost if we prep the ground for usecases like this. And at the very least you get a bit of debuggability out of this, since if you fail to make some image boot on your system you can easily figure out if it&#x27;s because the arch didn&#x27;t match.<br> <p> Not that multi-arch is not a new concept. Debian strives to build the whole OS that way, to some degree, and Fedora&#x27;s multilib kinda goes in a similar direction (though with much weaker goals). <br> <p> Lennart<br> </div> Mon, 14 Jun 2021 15:32:53 +0000 Painting yourself into a corner with GPT UUIDs https://lwn.net/Articles/859603/ https://lwn.net/Articles/859603/ mezcalero <div class="FormattedComment"> Oh, and I forgot to say: the automatic logic only looks for the root partition on the disk the ESP used for booting is on. And it looks for the other partitions only on the disk the root partition is on. Thus, if you plug in random stuff then this logic shouldn&#x27;t care whatsoever. <br> </div> Mon, 14 Jun 2021 15:24:26 +0000 Painting yourself into a corner with GPT UUIDs https://lwn.net/Articles/859602/ https://lwn.net/Articles/859602/ mezcalero <div class="FormattedComment"> There are multiple safety checks in place: we don&#x27;t overmount populated dirs. We don&#x27;t overmount dirs that already are mount points. And anything listed in /etc/fstab is also excluded from the automatic logic.<br> <p> Lennart<br> </div> Mon, 14 Jun 2021 15:22:58 +0000 Poettering: The Wondrous World of Discoverable GPT Disk Images https://lwn.net/Articles/859596/ https://lwn.net/Articles/859596/ nix <div class="FormattedComment"> They are common cases that are frequently needed to boot a system. Seems reasonable. Since they&#x27;re just UUIDs, distros can generate more for distro-specific partitions they might need: e.g. Nix (no relation) might want /nix to have a partition type ID of its own. Because the UUID space is so sparse, they can just do it: there&#x27;s no need to coordinate with anyone else until and unless they want other systems to recognize a separately-mounted /nix. (Note: I believe Nix doesn&#x27;t support a separately-mounted /nix in any case: it was just a random example of an OS with a major fs tree which is not /, /usr or /var.)<br> <p> There is no pretension here to including *every possible* filesystem path. That would both be pointless and impossible. Nor is there any suggestion that this is replacing /etc/fstab: it&#x27;s just nailing the partition -&gt; mount point mapping into the partition table. (You could generate pieces of /etc/fstab, or systemd mount units, directly from the partition info: indeed, I believe this is what systemd is doing these days. But that doesn&#x27;t obsolete the idea of having the partition -&gt; mount point info for other mount points in a readable form somewhere outside the partition table! You don&#x27;t *have* to use this for everything: you just *can* use it for boot-critical things.)<br> </div> Mon, 14 Jun 2021 14:06:12 +0000 Poettering: The Wondrous World of Discoverable GPT Disk Images https://lwn.net/Articles/859591/ https://lwn.net/Articles/859591/ nix <div class="FormattedComment"> I think this is mostly useful so you can have one container with many concatenated arch disk images on it, and switch easily between them. I know I&#x27;ve wanted that in the past. Mind you, it&#x27;s not at all a common case: I&#x27;m not sure why it belongs in here (which is mostly about making common cases easier), except that recording the arch of the binaries contained on a root filesystem *is* obviously a piece of useful description if you&#x27;re trying to decide whether to mount that filesystem, so if you can record it without tradeoffs, why not?<br> </div> Mon, 14 Jun 2021 14:01:09 +0000 Poettering: The Wondrous World of Discoverable GPT Disk Images https://lwn.net/Articles/859588/ https://lwn.net/Articles/859588/ anselm <p> Nobody (least of all Lennart Poettering) said that this was supposed to replace <tt>/etc/fstab</tt> in its full generality, which would be a silly notion. If it can streamline the 95% of applications that use only a few well-known partitions then that is already a big win. The remaining 5% can still be treated individually by hand because <tt>root=</tt> and <tt>/etc/fstab</tt> will continue to work. </p> Mon, 14 Jun 2021 13:59:39 +0000 Painting yourself into a corner with GPT UUIDs https://lwn.net/Articles/859589/ https://lwn.net/Articles/859589/ mgedmin <div class="FormattedComment"> What happens if my /etc/fstab doesn&#x27;t have an entry for /usr (because it&#x27;s part of /), but I attach a USB drive with a GPT that says &quot;mount this thing as /usr please&quot;?<br> <p> Does the mere existence of an /etc/fstab prevent mounting of things by magic labels? Or is there a safety check where magic-label-based things are only mounted on empty directories?<br> </div> Mon, 14 Jun 2021 13:58:02 +0000 Painting yourself into a corner with GPT UUIDs https://lwn.net/Articles/859585/ https://lwn.net/Articles/859585/ nix <div class="FormattedComment"> It looks like exactly the same advantages, and problems, as automounting RAID arrays: you can mount them automatically and the knowledge of FS identity follows the FS around without your needing to do anything (which is an unambiguously good thing)... except that *because* this is true, it can happen unexpectedly when you attach it to an existing machine which already has an fs of the specified type. The way the md subsystem fixes this is with an attached hostname which can be specified at mount time, but that won&#x27;t work here: the firmware has no idea of the hostname and the mounting is possibly not being done by a userspace program we control but by the firmware itself. (It will work if systemd, or another component of normal userspace, is doing the mounting, from an initramfs or something on the ESP -- but if you have that, you might just as well bake in the traditional root fs location. Mind you, this *is* strictly nicer than the traditional root fs location, so it&#x27;s beneficial regardless...)<br> </div> Mon, 14 Jun 2021 13:56:19 +0000 Painting yourself into a corner with GPT UUIDs https://lwn.net/Articles/859576/ https://lwn.net/Articles/859576/ mtu <div class="FormattedComment"> The blogpost cites eight different possible uses of the Discoverable Partitions Specification.<br> <p> OP talks about &quot;Use #2: Booting an OS image on bare-metal without /etc/fstab or kernel command line root=&quot; and its potential pitfalls.<br> <p> You appear to _think_ OP is talking about &quot;Use #1: Running a disk image in a container&quot;, but quoting that part of the blogpost doesn&#x27;t make it so.<br> <p> If that&#x27;s how you approach a complex topic, good luck for your career.<br> </div> Mon, 14 Jun 2021 12:31:13 +0000 Poettering: The Wondrous World of Discoverable GPT Disk Images https://lwn.net/Articles/859572/ https://lwn.net/Articles/859572/ mtu <div class="FormattedComment"> It&#x27;s ridiculous in any case to cement a select few paths for partition-automounting, but no others. Since /etc/fstab takes arbitrary paths, this is a step backwards.<br> </div> Mon, 14 Jun 2021 12:20:18 +0000 Poettering: The Wondrous World of Discoverable GPT Disk Images https://lwn.net/Articles/859571/ https://lwn.net/Articles/859571/ zdzichu <div class="FormattedComment"> /var itself should be a read-write mount, even on R/O system images. Otherwise it&#x27;s not really a /var, right?<br> But if you insist on getting a dedicated partition for /var/log, just do it – generate some UUID and open a Pull Request against <a href="https://github.com/systemd/systemd/blob/main/docs/DISCOVERABLE_PARTITIONS.md">https://github.com/systemd/systemd/blob/main/docs/DISCOVE...</a><br> No guarantee it will work, but at least it will be discussed.<br> </div> Mon, 14 Jun 2021 11:26:58 +0000 Poettering: The Wondrous World of Discoverable GPT Disk Images https://lwn.net/Articles/859565/ https://lwn.net/Articles/859565/ bluca <div class="FormattedComment"> There&#x27;s a UUID for /var: 4d21b016-b534-45c2-a9fb-5c16e091fd2d<br> </div> Mon, 14 Jun 2021 10:08:04 +0000 Poettering: The Wondrous World of Discoverable GPT Disk Images https://lwn.net/Articles/859561/ https://lwn.net/Articles/859561/ taladar <div class="FormattedComment"> It is a bit confusing that they have UUIDs for certain common mount points but not for e.g. /var/log which is very common to put on a separate partition both for read-write support in an otherwise read-only system and to avoid the situation where growing log files fill up the entire root partition instead of &quot;just&quot; /var/log.<br> </div> Mon, 14 Jun 2021 09:02:47 +0000 Poettering: The Wondrous World of Discoverable GPT Disk Images https://lwn.net/Articles/859555/ https://lwn.net/Articles/859555/ gspr <div class="FormattedComment"> The Wiktionary entry for &quot;natural&quot; lists 13 meanings as an English adjective. Maybe number 4 is illuminating? <br> <p> &quot;Natural: 4. As expected; reasonable. &quot;<br> <p> <p> </div> Mon, 14 Jun 2021 08:37:24 +0000 Painting yourself into a corner with GPT UUIDs https://lwn.net/Articles/859546/ https://lwn.net/Articles/859546/ rahvin <div class="FormattedComment"> This post doesn&#x27;t belong here. <br> </div> Mon, 14 Jun 2021 06:24:35 +0000 Painting yourself into a corner with GPT UUIDs https://lwn.net/Articles/859545/ https://lwn.net/Articles/859545/ motk <div class="FormattedComment"> Yeah, this is pretty obviously bogus mate. Reconsider.<br> </div> Mon, 14 Jun 2021 05:46:35 +0000 Painting yourself into a corner with GPT UUIDs https://lwn.net/Articles/859538/ https://lwn.net/Articles/859538/ linuxrocks123 <div class="FormattedComment"> <font class="QuotedText">&gt; Maybe it&#x27;s just me not trusting the blogpost&#x27;s author even with a reimplementation of true(1)</font><br> <p> If Poettering ever reimplemented true, the executable would be over 50MB large; it would have hard dependencies to PAM, systemd, PulseAudio, GNOME, Wayland, and the Java runtime; and, when asked why true didn&#x27;t work correctly, he would respond with a lengthy argument quoting Thomas Aquinas and claiming his implementation&#x27;s behavior is actually and obviously correct.<br> </div> Sun, 13 Jun 2021 23:51:24 +0000