[systemd-devel] Why does initrd-parse-etc.service re-start initrd-fs.target?

Colin Walters walters at verbum.org
Sun Dec 8 22:23:55 UTC 2019



On Sun, Dec 8, 2019, at 5:20 PM, Colin Walters wrote:
> 
> 
> On Fri, Dec 6, 2019, at 12:53 PM, Andrei Borzenkov wrote:
> 
> > After real root is mounted daemon-reload re-runs fstab generator which
> > parses real root /etc/fstab and may pull mount points from it.
> > Restarting initrd-fs.target will propagate start request to its (newly
> > created) dependent mount units. Otherwise there is no obvious way to
> > start them (without explicitly starting each).
> 
> Hmm, we mount things from /etc/fstab in the initramfs?  Why would we do 
> that?  I thought they were mounted after the re-execution under the 
> real root, as part of local-fs.target.

Ah, answering my own question, there's an x-initrd.mount fstab option.
So then, the reason initrd-parse-etc.service does this is to mount any x-initrd.mount fstab mounts?
If so, I'll do a patch to document this.


More information about the systemd-devel mailing list