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

Andrei Borzenkov arvidjaar at gmail.com
Sat Dec 14 08:52:25 UTC 2019


09.12.2019 01:23, Colin Walters пишет:
> 
> 
> 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?

That is how I understand it after looking in the source.

> If so, I'll do a patch to document this.


More information about the systemd-devel mailing list