Bug 50505 - systemd generates invalid mount file for samba share
Summary: systemd generates invalid mount file for samba share
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Lennart Poettering
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-30 07:52 UTC by mus.svz
Modified: 2012-06-04 07:57 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.