Re: [systemd-devel] How many times is the root mounted in boot up?

2015-06-09 Thread Lennart Poettering
On Mon, 01.06.15 20:43, Mantas Mikulėnas (graw...@gmail.com) wrote:

 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.

Well, not quite. It's actually more complex. We will actually merge
information from both, but for the parts of it that are conflicting
the current one from /proc will win over the one from disk.

Specifically this means that systemctl status /home will show in the
What: line what is currenty *actually* mounted on /home, and not
what /etc/fstab says that *should* be mounted there...

Lennart

-- 
Lennart Poettering, Red Hat
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] How many times is the root mounted in boot up?

2015-06-01 Thread cee1
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?

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?
* For 1, it will not do the mount action, but 2 will. Am I right? If
so, why we mount root here(again)?

And systemd-remount-fs.service will remount the root again, thus apply
options in fstab?

BTW, where are the units generated by generators?



-- 
Regards,

- cee1
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel