<p dir="ltr"><br>
On Oct 8, 2014 2:15 PM, "Harald Hoyer" <<a href="mailto:harald.hoyer@gmail.com">harald.hoyer@gmail.com</a>> wrote:<br>
> > What is the rationale of this patch?<br>
> > Supporting systems without /etc/fstab in the root device?<br>
> > Overriding the /etc/fstab settings?<br>
> ><br>
> > In a systemd initrd (e.g. in dracut) as soon as initrd-root-fs.target is<br>
> > reached, initrd-parse-etc.service is executed, which retriggers the<br>
> > fstab-generator and reads fstab from the real root and generates units for /usr.</p>
<p dir="ltr">Hello Harald,</p>
<p dir="ltr">The use case is exactly the one Lennart described in his blog about deploying Linux in the future.</p>
<p dir="ltr">My setup now looks like this: I got a Btrfs partition for my Linux installations. This partition has a subvol root:somename:someid:x86_64 containing a Linux installation minus /use.</p>
<p dir="ltr">Then I have several versions of /use for that distribution in more subvolumes named usr:someid:x86_64:version (all with different versions, basically getting incremented whenever a new set of packages gets installed).</p>
<p dir="ltr">The idea is to now be able to write bootloader entries for all versions the somename-installation.</p>
<p dir="ltr">For that the initrd needs to know which /usr to mount on top of the root partition.</p>
<p dir="ltr">I can not use the fstab from the root drive here, because that would always point to the same version of /use, preventing me to roll back/forward when something breaks during an upgrade.</p>
<p dir="ltr">What I could do instead is to put the information about which subvol to mount at /use into the initrd. But I actually think the way of passing this into initrd in the same way as the rootfs is more consistent and it also saves me from having a new initrd in /boot when libreoffice gets updated. That *might* be necessary when using secure boot, but only then.</p>
<p dir="ltr">Does this explain my motivation for this patch sufficiently?</p>
<p dir="ltr">Best Regards,<br>
Tobias</p>
<div class="gmail_quot<blockquote class=" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On <a href="tel:08.10.2014%2014" value="+49810201414">08.10.2014 14</a>:13, Harald Hoyer wrote:<br>
> On 24.09.2014 22:08, Tobias Hunger wrote:<br>
>> From f3a193de94959875cd1d83f941ed8fc8275c82eb Mon Sep 17 00:00:00 2001<br>
>> From: Tobias Hunger <<a href="mailto:tobias.hunger@digia.com">tobias.hunger@digia.com</a>><br>
>> Date: Wed, 24 Sep 2014 21:57:00 +0200<br>
>> Subject: [PATCH] fstab-generator: Honor usr=, usrfstype= and usrflags= on<br>
>> kernel command line<br>
>><br>
>> This allows to configure boot loader entries for systems where the<br>
>> root and usr filesystems are in different subvolumes (or even on<br>
>> different drives).<br>
><br>
> What is the rationale of this patch?<br>
> Supporting systems without /etc/fstab in the root device?<br>
> Overriding the /etc/fstab settings?<br>
><br>
> In a systemd initrd (e.g. in dracut) as soon as initrd-root-fs.target is<br>
> reached, initrd-parse-etc.service is executed, which retriggers the<br>
> fstab-generator and reads fstab from the real root and generates units for /usr.<br>
><br>
><br>
<br>
doh.. didn't sent to mailing list... resent to list only.. sorry<br>
</div>