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

Colin Walters walters at verbum.org
Sun Dec 8 22:20:50 UTC 2019



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.

I just tested this out on a recent Fedora CoreOS build by dropping a dummy bind mount in /etc/fstab, and I only see it mounted post-switchroot.


More information about the systemd-devel mailing list