[systemd-devel] Antw: Re: Need help detecting local/remote targets

Simon McVittie smcv at collabora.com
Wed Aug 21 12:21:32 UTC 2019


On Wed, 21 Aug 2019 at 08:02:39 +0200, Ulrich Windl wrote:
> >>> Mantas Mikulenas <grawity at gmail.com> schrieb am 21.08.2019 um 06:07 in
> Nachricht
> <CAPWNY8WmAPKakb5ssfZ4DrN-qomhsgj8sM9bhXXuP0R6kmYPRA at mail.gmail.com>:
> > / and /usr are mounted by initramfs before systemd starts.
> 
> And what about /run?

/run is mounted by systemd as pid 1, but it is one of the "API file
systems"[1] and is required to be a tmpfs, so listing a non-tmpfs /run in
/etc/fstab is not a supported situation. As a result, it is always local.

    smcv

[1] https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems/


More information about the systemd-devel mailing list