You are not logged in.

#1 2015-02-19 15:54:58

LessWire
Member
From: Bavaria
Registered: 2010-06-14
Posts: 46

[solved] systemd 219: automount doesn't work anymore

To mount a directory with sshfs on another Arch system in my local net I added this to fstab:

root@192.168.0.6:/var/cache/pacman/pkg /var/cache/pacman/pkg fuse.sshfs x-systemd.automount,_netdev,user,noatime,idmap=user,transform_symlinks,identityfile=/root/.ssh/id_rsa,allow_other,default_permissions,reconnect 0 0

I need it to use a local pacman directory globally so new packages will be downloaded only once for all my Arch pc's.

This has worked for a long time but since systemd 219-1 nothing happens. Mounting it manually using fstab works. I switched back to systemd 218-2 and it works fine again.

Thanks, lw.

Last edited by LessWire (2015-03-16 14:41:09)

Offline

#2 2015-02-25 10:58:44

Harey
Member
From: Bavaria, Germany
Registered: 2007-03-24
Posts: 374

Re: [solved] systemd 219: automount doesn't work anymore

Same here for cifs and ntfs4 mounts in fstab. Downgrade from 219-2 to 218-2 fixes this.
Example fstab entry:

//sambaserver/myshare    /home/me/server/myshare      cifs x-systemd.automount,sec=ntlmv2,nobrl,user=me,password=mypw,workgroup=My.LAN 0 0

works with 218-2 but not with 219-2. Timing issue?

Manually mounting the directories on console after boot works:

mount //sambaserver/myshare

Harvey


Linux is like a wigwam: No Gates, no Windows and an Apache inside

Offline

#3 2015-02-26 03:27:58

LessWire
Member
From: Bavaria
Registered: 2010-06-14
Posts: 46

Re: [solved] systemd 219: automount doesn't work anymore

It seems to be a general problem for systemd automounts needing the network. It doesn't depend on the filesystem to be mounted.

I've seen it's already in the bugtracker.

Greets from/to Bavaria! smile

Offline

#4 2015-02-26 07:35:40

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: [solved] systemd 219: automount doesn't work anymore

https://bugs.archlinux.org/task/43915 - git bisecting would be helpful what commit made it break.

Offline

#5 2015-03-16 14:36:08

LessWire
Member
From: Bavaria
Registered: 2010-06-14
Posts: 46

Re: [solved] systemd 219: automount doesn't work anymore

It's a feature not a bug (see discussion in bugtracker) wink

systemctl enable remote-fs.target

did the trick.

Offline

Board footer

Powered by FluxBB