{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/etcd/issues/977","labels_url":"https://api.github.com/repos/coreos/etcd/issues/977/labels{/name}","comments_url":"https://api.github.com/repos/coreos/etcd/issues/977/comments","events_url":"https://api.github.com/repos/coreos/etcd/issues/977/events","html_url":"https://github.com/coreos/etcd/issues/977","id":41873273,"number":977,"title":"disk mount with unit fails","user":{"login":"George-Mpouras","id":8384108,"avatar_url":"https://avatars.githubusercontent.com/u/8384108?v=3","gravatar_id":"","url":"https://api.github.com/users/George-Mpouras","html_url":"https://github.com/George-Mpouras","followers_url":"https://api.github.com/users/George-Mpouras/followers","following_url":"https://api.github.com/users/George-Mpouras/following{/other_user}","gists_url":"https://api.github.com/users/George-Mpouras/gists{/gist_id}","starred_url":"https://api.github.com/users/George-Mpouras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/George-Mpouras/subscriptions","organizations_url":"https://api.github.com/users/George-Mpouras/orgs","repos_url":"https://api.github.com/users/George-Mpouras/repos","events_url":"https://api.github.com/users/George-Mpouras/events{/privacy}","received_events_url":"https://api.github.com/users/George-Mpouras/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-09-03T22:00:37Z","updated_at":"2015-05-24T12:43:02Z","closed_at":"2014-09-03T23:42:10Z","body":"At my cloud-config I have the following unit to mount an already btrfs formatted /dev/sdb1 partition to my ipxe booted server\r\n\r\n    - name: disk.mount\r\n      command: start\r\n      content: |\r\n        [Unit]\r\n        Description=Mount extra disk\r\n        DefaultDependencies=no\r\n        Conflicts=umount.target\r\n        [Mount]\r\n        What=/dev/sdb1\r\n        Where=/mnt\r\n        Type=btrfs\r\n        TimeoutSec=10\r\n\r\nThis always fail with the folllowing errors\r\n\r\n\r\nsystemctl status  disk.mount\r\n● disk.mount - Mount extra disk\r\n   Loaded: error (Reason: Invalid argument)\r\n   Active: inactive (dead)\r\n    Where: /mnt\r\n     What: /dev/sdb1\r\n\r\nSep 04 00:46:14 core01 systemd[1]: disk.mount's Where= setting doesn't match unit name. Refusing.\r\nSep 04 00:56:02 core01 systemd[1]: disk.mount's Where= setting doesn't match unit name. Refusing.\r\n\r\n\r\nWhat I am doing wrong ? Thanks, \r\nGeorge Mpouras\r\n"},"comment":{"url":"https://api.github.com/repos/coreos/etcd/issues/comments/105010898","html_url":"https://github.com/coreos/etcd/issues/977#issuecomment-105010898","issue_url":"https://api.github.com/repos/coreos/etcd/issues/977","id":105010898,"user":{"login":"adarshaj","id":511183,"avatar_url":"https://avatars.githubusercontent.com/u/511183?v=3","gravatar_id":"","url":"https://api.github.com/users/adarshaj","html_url":"https://github.com/adarshaj","followers_url":"https://api.github.com/users/adarshaj/followers","following_url":"https://api.github.com/users/adarshaj/following{/other_user}","gists_url":"https://api.github.com/users/adarshaj/gists{/gist_id}","starred_url":"https://api.github.com/users/adarshaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adarshaj/subscriptions","organizations_url":"https://api.github.com/users/adarshaj/orgs","repos_url":"https://api.github.com/users/adarshaj/repos","events_url":"https://api.github.com/users/adarshaj/events{/privacy}","received_events_url":"https://api.github.com/users/adarshaj/received_events","type":"User","site_admin":false},"created_at":"2015-05-24T12:43:02Z","updated_at":"2015-05-24T12:43:02Z","body":"This comment is for those who land here after google search, this is not a bug in either etcd or coreos, its a feature of systemd's mount units. The solution is to name the file derived from the 'Where=' setting, by replacing '/' with '-' (and dropping the first '/'), so in the above case, the first line should have had been :\r\n```\r\n- name: mnt.mount\r\n```\r\n\r\nSource - http://www.freedesktop.org/software/systemd/man/systemd.mount.html\r\n```\r\nMount units must be named after the mount point directories they control. Example: the mount point /home/lennart must be configured in a unit file home-lennart.mount.\r\n```"}}