You are not logged in.

#1 2012-06-02 09:22:23

Glaucous
Member
Registered: 2010-11-06
Posts: 41

systemd automount no longer works

Hello,

Since the update of systemd-tools, the "comment=systemd.automount, or x-systemd.automount" in fstab no longer works. During boot it just says "systemd failed to initialize automounter, no such file or directory". Removing the automount comment mounts all partitions properly.

(Not sure if autofs is needed, never needed it before)
community/autofs 5.0.6-3
core/libsystemd 184-2
core/systemd 184-2
community/systemd-arch-units 20120528-3
core/systemd-tools 184-2

kernel 3.3.7-1-ck.
I'm going to check if the same error occurs with stock kernel.

Edit: Found the error, apparently ONE partition didn't like being automounted, I'll look into that. Bottom line is, there's no problem with the latest update!

Last edited by Glaucous (2012-06-02 09:35:28)

Offline

#2 2012-06-03 15:06:29

Da_Coynul
Member
From: United States of America
Registered: 2010-10-02
Posts: 85

Re: systemd automount no longer works

Something has changed with systemd automounting - my cifs share that automounted faithfully for months will no longer do so.  It mounts manually with no problem.

UPDATE:  Here's the error I am getting in my system log

mount.cifs: bad UNC (/192.168.1.1/USB_Storage)

Last edited by Da_Coynul (2012-06-03 16:02:57)

Offline

#3 2012-06-03 17:00:21

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: systemd automount no longer works

Da_Coynul wrote:

Something has changed with systemd automounting - my cifs share that automounted faithfully for months will no longer do so.  It mounts manually with no problem.

UPDATE:  Here's the error I am getting in my system log

mount.cifs: bad UNC (/192.168.1.1/USB_Storage)

yes, I also noticed this. The problem is that systemd cuts of the first slash when parsing the fstab.
falconindy posted a patch upstream which should fix this. I guess this should make it into the next systemd version.
http://lists.freedesktop.org/archives/s … 05343.html

Offline

#4 2012-06-03 21:36:00

Da_Coynul
Member
From: United States of America
Registered: 2010-10-02
Posts: 85

Re: systemd automount no longer works

65kid wrote:

yes, I also noticed this. The problem is that systemd cuts of the first slash when parsing the fstab.
falconindy posted a patch upstream which should fix this. I guess this should make it into the next systemd version.
http://lists.freedesktop.org/archives/s … 05343.html

Thanks, 65kid.  Funny thing is I noticed the missing slash in the error message and even tried adding an extra one in my fstab but that didn't seem to do anything.

Offline

#5 2012-06-03 22:00:28

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: systemd automount no longer works

Da_Coynul wrote:
65kid wrote:

yes, I also noticed this. The problem is that systemd cuts of the first slash when parsing the fstab.
falconindy posted a patch upstream which should fix this. I guess this should make it into the next systemd version.
http://lists.freedesktop.org/archives/s … 05343.html

Thanks, 65kid.  Funny thing is I noticed the missing slash in the error message and even tried adding an extra one in my fstab but that didn't seem to do anything.

It's persistent enough to strip off any number of "extra" slashes, apparently. You should be able to work around this bug by making an "actual" unit in /etc/systemd/system for the affected mount, which will be used instead of what it thinks it sees in fstab. Look in /run/systemd/generators/ to see what it came up with automatically and use that as a starting point.

Offline

Board footer

Powered by FluxBB