[systemd-devel] In what case will debugfs be mounted multi-times?

Lennart Poettering lennart at poettering.net
Thu Jun 18 11:52:33 PDT 2015


On Sat, 13.06.15 15:56, cee1 (fykcee1 at gmail.com) wrote:

> 2015-06-09 18:10 GMT+08:00 Lennart Poettering <lennart at poettering.net>:
> > On Thu, 04.06.15 23:41, cee1 (fykcee1 at gmail.com) wrote:
> >> So why the Debug File System is mounted multi-times here? Any idea?
> >
> > Hmm, my suspicion is that the file system might actually already be
> > mounted by the kernel the second time we look at it, but systemd is
> > doesn't notice that or so.
> >
> > Is it possible that your kernel has been built without
> > name_to_handle_at() or so?
> Yes, it returns NOSYS...
> 
> The strange thing is these only happens when a service (default
> dependencies = no) failed to start.

I am pretty sure there's something wrong with systemd's handling of
mount units under /sys. I have added a TODO list item for now, so that
we remember to look at it.

For example mount_add_default_dependencies() treats all path starting
with /dev pretty special...

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list