Re: Leave autofs alone?



Hi Bjørn,

sorry I don't have much experience with autofs. I will have to configure some to see what is happening there....

I don't think we want generally ignore all autofs mounts, but we have just to be sure that GVfs won't cause automounting of them. Can you please file a bug report for GVfs with info about your configuration?

I won't tell you how you should write the systemd unit, however, I have some tips what more you can do. You can also try to use different mount paths. More-or-less only mounts in /media, $HOME, and /run/media/$USER are handled, so path change may have same effect as x-gvfs-hide. Or you can probably set also custom udev rules. See the following document:
https://git.gnome.org/browse/gvfs/tree/monitor/udisks2/what-is-shown.txt



2016-09-19 23:01 GMT+02:00 Bjørn Forsman <bjorn forsman gmail com>:
On 19 September 2016 at 18:17, Bjørn Forsman <bjorn forsman gmail com> wrote:
> Hi Ondrej,
>
> On 19 September 2016 at 16:26, Ondrej Holy <oholy redhat com> wrote:
>> [...]
>> So you can:
>> - hide those mounts from UI e.g. using "x-gvfs-hide" mount option, or
>> - disable automounting at all by "org.gnome.desktop.media-handling
>> automount" gsettings property.
>>
>> Does it fulfill your needs?
>
> Yes, that first option works perfect. Thank you!

New problem. I need better control over error handling, specifically
I'd need to have RestartSec= and Restart= in the .mount unit. The
problem is that those options are not available in /etc/fstab
(systemd-fstab-generator only parses few select "systemd" options). So
I decided to try using native systemd unit for the autofs + sshfs
mounts. Now where do I put the "x-gvfs-hide" mount option? I mean, I
still have that option in the systemd .mount unit, but it has no
effect. (And .automount units have no "Option=" directive.)

I'm stuck.

Best regards,
Bjørn Forsman



--
Regards

Ondrej


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]