You are not logged in.
Hey guys,
I'm trying to understand the systemd boot process, but one thing that has me stumped is where the virtual and boot filesystems (/proc, /run, /sys, /dev, etc) get mounted?
I'm not seeing a systemd .mount unit file for these filesystems anywhere, nor did I see any in systemctl list-unit-files. I grepped for 'Where=<mountpoint>' recursively on /usr/lib and /etc for each of the mount points, but that didn't bring up anything either.
So it looks like these just opaquely get mounted as part of systemd bootstrapping? Is that right?
Thanks!
Offline
AFAIK, systemd takes care of common special filesystems. In fact, when running a systemd container, it takes care of redirecting the host virtual filesystems to the guest, and setting them as read only inside the container. I haven't really checked the source code, but it should be easy to find, I guess.
Offline