[systemd-devel] [PATCH] fstab-generator: handle mount units with "x-rootfs.mount"

Harald Hoyer harald at redhat.com
Fri Mar 22 21:49:37 PDT 2013


Am 23.03.2013 03:05, schrieb Lennart Poettering:
> On Thu, 14.03.13 13:15, harald at redhat.com (harald at redhat.com) wrote:
> 
>> From: Harald Hoyer <harald at redhat.com>
>>
>> Mount units with "x-rootfs.mount" are now ordered before root-fs.target.
>> As we sometimes construct /sysroot mounts in /etc/fstab in the initrd,
>> we want these to be mounted before the root-fs.target is active.
> 
> Hmm, I don't get this, what is this for? Where's the destinction to
> "x-initrd.mount"? Why do we need both? Examples?
> 
> Apparently a patch like this got merged, but it uses
> "x-initrd-rootfs.mount" as identifier, is that the same thing? If so,
> the thing really should be called "x-initrd.foobar", i.e. "x-initrd" is
> supposed to be the 'namespace' the setting is in.
> 
> Anyway, totally not grokking this, please enlighten me.
> 

Sometimes we need to create an /etc/fstab entry for /sysroot in the initramfs
manually. So, we could either hardcode "/sysroot" to result in dependencies to
SPECIAL_ROOT_FS_TARGET, or mark it with "x-initrd-rootfs.mount".



More information about the systemd-devel mailing list