[Pkg-sysvinit-devel] Bug#763965: initscripts: systemd.automount with option noauto in fstab should not mount mountpoint

Jakob Schürz wertstoffe at nurfuerspam.de
Sat Oct 4 13:18:49 UTC 2014


Am 2014-10-04 15:11, schrieb Jakobus Schürz:
> Am 2014-10-04 14:02, schrieb Petter Reinholdtsen:
>> [Jakobus Schürz]
>>> using systemd-automount trys to and mounts mountpoints, which have the
>>> option "noauto" in fstab. 
>>>
>>> exactly: the combination of "comment=systemd.automount,noauto" mounts
>>> all this mountpoints on bootup. The problem is the file
>>> /lib/init/mount-functions.sh
>>>
>>> systemd puts automountpoints in mtab with "systemd-1" as device. The
>>> mount-functions.sh ignores this and tries to mount all this mountpoints.
>>
>> If domount() try to mount a entry with the noauto option, it sound
>> like a bug.  Adding another option seem like the wrong fix.  Are you
>> sure this is a good approach?
>>

There is an issue with systemd.
When i have an mountpoint with the options "defaults,noauto", nothing
happens on boottime.
But if there is "comment=systemd.automount,defaults,noauto", the
mountpoint gets mountet by domount.

When I debugged this, i saw, the "DEVNAME" systemd-1, which is created
by systemd.automount is not recognized. So, there is a mechanizm missed
for this in the mount-functions.sh.
It belongs to the "MOUNTMODE=mtab"!! In mtab is the Option "noauto" not
listet.
So this issue occurs there in domount.

How this all works with other automount-mechanizms, I don't know.

Jakob



More information about the Pkg-sysvinit-devel mailing list