{"action":"created","issue":{"url":"https://api.github.com/repos/systemd/systemd/issues/4147","repository_url":"https://api.github.com/repos/systemd/systemd","labels_url":"https://api.github.com/repos/systemd/systemd/issues/4147/labels{/name}","comments_url":"https://api.github.com/repos/systemd/systemd/issues/4147/comments","events_url":"https://api.github.com/repos/systemd/systemd/issues/4147/events","html_url":"https://github.com/systemd/systemd/issues/4147","id":177050085,"number":4147,"title":"Unit file with mountpoint dependency gets executed while the mountpoint never exists","user":{"login":"Sworddragon","id":293784,"avatar_url":"https://avatars.githubusercontent.com/u/293784?v=3","gravatar_id":"","url":"https://api.github.com/users/Sworddragon","html_url":"https://github.com/Sworddragon","followers_url":"https://api.github.com/users/Sworddragon/followers","following_url":"https://api.github.com/users/Sworddragon/following{/other_user}","gists_url":"https://api.github.com/users/Sworddragon/gists{/gist_id}","starred_url":"https://api.github.com/users/Sworddragon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sworddragon/subscriptions","organizations_url":"https://api.github.com/users/Sworddragon/orgs","repos_url":"https://api.github.com/users/Sworddragon/repos","events_url":"https://api.github.com/users/Sworddragon/events{/privacy}","received_events_url":"https://api.github.com/users/Sworddragon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-14T23:34:45Z","updated_at":"2016-09-15T03:51:59Z","closed_at":"2016-09-15T03:51:59Z","body":"### Submission type\r\n\r\n  - [ x ] Bug report\r\n\r\n### systemd version the issue has been seen with\r\n\r\n> 231\r\n\r\n### Used distribution\r\n\r\n> Ubuntu 16.10 dev\r\n\r\n### In case of bug report: Steps to reproduce the problem\r\n\r\n> Create the following file in /etc/systemd/system/test.service and then enabled it and reboot the system or execute \"systemctl start test.service\":\r\n`[Install]\r\nRequiredBy=default.target\r\n\r\n[Service]\r\nExecStart=/bin/sh -c 'echo 1 > /tmp/test.txt'\r\n\r\n[Unit]\r\nRequiresMountsFor=/does_never_exist`\r\n\r\n### In case of bug report: Unexpected behaviour you saw\r\n\r\n> /tmp/test.txt got created.\r\n\r\n### In case of bug report: Expected behaviour you didn't see\r\n\r\n> Because /does_never_exist doesn't exist but its mountpoint is a requirement for the unit file /tmp/test.txt should not be created."},"comment":{"url":"https://api.github.com/repos/systemd/systemd/issues/comments/247227183","html_url":"https://github.com/systemd/systemd/issues/4147#issuecomment-247227183","issue_url":"https://api.github.com/repos/systemd/systemd/issues/4147","id":247227183,"user":{"login":"arvidjaar","id":187138,"avatar_url":"https://avatars.githubusercontent.com/u/187138?v=3","gravatar_id":"","url":"https://api.github.com/users/arvidjaar","html_url":"https://github.com/arvidjaar","followers_url":"https://api.github.com/users/arvidjaar/followers","following_url":"https://api.github.com/users/arvidjaar/following{/other_user}","gists_url":"https://api.github.com/users/arvidjaar/gists{/gist_id}","starred_url":"https://api.github.com/users/arvidjaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arvidjaar/subscriptions","organizations_url":"https://api.github.com/users/arvidjaar/orgs","repos_url":"https://api.github.com/users/arvidjaar/repos","events_url":"https://api.github.com/users/arvidjaar/events{/privacy}","received_events_url":"https://api.github.com/users/arvidjaar/received_events","type":"User","site_admin":false},"created_at":"2016-09-15T03:51:58Z","updated_at":"2016-09-15T03:51:58Z","body":"@Sworddragon \r\n\r\nYou misunderstand what `RequiresMountsFor` does. It adds dependency to mount units that are needed to access this path - *if* there are mount units covering this path. Otherwise it simply adds requirement for `/` mount point."}}
{"actor":{"display_login":"arvidjaar"}}