Bug 50505

Summary: systemd generates invalid mount file for samba share
Product: systemd Reporter: mus.svz
Component: generalAssignee: Lennart Poettering <lennart>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description mus.svz 2012-05-30 07:52:01 UTC
I recently added the following fstab entry for a samba share:
//server/videos /mnt/videos cifs noauto,x-systemd.automount,username=***,password=*** 0 0

the resulting mount file /run/systemd/generator/mnt-videos.mount fails to start:

May 30 16:20:46 laptop mount[1853]: mount.cifs: bad UNC (/server/videos)

This happens because the mount file actually contains What=/server/videos with just a single slash, while it should contain What=//server/videos as specificed in /etc/fstab. Copying the file to /etc/systemd/system and editing the What= line fixes the problem.

Arch Linux x64 (testing)
systemd 183

I downgraded back to systemd 44 and it happens there too btw.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.