On Mon, Jun 1, 2015 at 5:56 PM, cee1 <[email protected]> wrote: > Hi all, > > In case of no initrd and mounting the root by specifying > "root=/dev/sdaN" in kernel command line, how many time is the root > mounted in systemd? >
It's only mounted once, by the kernel. systemd won't mount it again, it doesn't need to. It will however _remount_ it if needed, to apply the new options like rw. I find: > 1. systemd will generate a "-.mount" unit from /proc/self/mountsinfo > 2. systemd will generate a "-.mount" unit by systemd-fstab-generator > > Q: > * Which one takes priority? > The latter, because it's a real unit, not just an in-memory representation of the current state. > * For 1, it will not do the mount action, but 2 will. Am I right? If > so, why we mount root here(again)? > No. If it's already mounted, then it's mounted. > And systemd-remount-fs.service will remount the root again, thus apply > options in fstab? > Yes, such as rw. > BTW, where are the units generated by generators? > /run/systemd/generator*/ -- Mantas Mikulėnas <[email protected]>
_______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
