{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/bugs/issues/1094","repository_url":"https://api.github.com/repos/coreos/bugs","labels_url":"https://api.github.com/repos/coreos/bugs/issues/1094/labels{/name}","comments_url":"https://api.github.com/repos/coreos/bugs/issues/1094/comments","events_url":"https://api.github.com/repos/coreos/bugs/issues/1094/events","html_url":"https://github.com/coreos/bugs/issues/1094","id":128620643,"number":1094,"title":"running rkt install on first boot","user":{"login":"philips","id":33544,"avatar_url":"https://avatars.githubusercontent.com/u/33544?v=3","gravatar_id":"","url":"https://api.github.com/users/philips","html_url":"https://github.com/philips","followers_url":"https://api.github.com/users/philips/followers","following_url":"https://api.github.com/users/philips/following{/other_user}","gists_url":"https://api.github.com/users/philips/gists{/gist_id}","starred_url":"https://api.github.com/users/philips/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philips/subscriptions","organizations_url":"https://api.github.com/users/philips/orgs","repos_url":"https://api.github.com/users/philips/repos","events_url":"https://api.github.com/users/philips/events{/privacy}","received_events_url":"https://api.github.com/users/philips/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/coreos/bugs/labels/component/rkt","name":"component/rkt","color":"0052cc"},{"url":"https://api.github.com/repos/coreos/bugs/labels/kind/friction","name":"kind/friction","color":"c7def8"},{"url":"https://api.github.com/repos/coreos/bugs/labels/priority/P1","name":"priority/P1","color":"eb6420"},{"url":"https://api.github.com/repos/coreos/bugs/labels/team/os","name":"team/os","color":"ffffff"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-25T19:43:41Z","updated_at":"2016-02-03T16:40:32Z","closed_at":null,"body":"In order to do permissions correctly inside of rkt we have the tool `rkt install` which sets up the /var/lib/rkt directory with permissions for the `rkt` group to fetch. Without this the first run experience on CoreOS is lame:\r\n\r\nBefore:\r\n```\r\ncore@core-01 ~ $ rkt fetch coreos.com/etcd,version=v2.3.1\r\nfetch: cannot open store: mkdir /var/lib/rkt/cas: permission denied\r\n```\r\n\r\nAfter:\r\n\r\n```\r\ncore@core-01 ~ $ rkt fetch coreos.com/etcd,version=v2.3.1\r\nrkt: searching for app image coreos.com/etcd\r\n```\r\n\r\nI think we should run `rkt install` on first boot as it is something like a systemd generator that does /etc/machine-id setup, etc. \r\n\r\ncc @alban @jonboulle "},"comment":{"url":"https://api.github.com/repos/coreos/bugs/issues/comments/179332966","html_url":"https://github.com/coreos/bugs/issues/1094#issuecomment-179332966","issue_url":"https://api.github.com/repos/coreos/bugs/issues/1094","id":179332966,"user":{"login":"alban","id":27575,"avatar_url":"https://avatars.githubusercontent.com/u/27575?v=3","gravatar_id":"","url":"https://api.github.com/users/alban","html_url":"https://github.com/alban","followers_url":"https://api.github.com/users/alban/followers","following_url":"https://api.github.com/users/alban/following{/other_user}","gists_url":"https://api.github.com/users/alban/gists{/gist_id}","starred_url":"https://api.github.com/users/alban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alban/subscriptions","organizations_url":"https://api.github.com/users/alban/orgs","repos_url":"https://api.github.com/users/alban/repos","events_url":"https://api.github.com/users/alban/events{/privacy}","received_events_url":"https://api.github.com/users/alban/received_events","type":"User","site_admin":false},"created_at":"2016-02-03T16:40:32Z","updated_at":"2016-02-03T16:40:32Z","body":"Sorry I didn't notice this issue before.\r\n\r\nSee the fix in https://github.com/coreos/rkt/pull/2088/files#diff-4ac32a78649ca5bdd8e0ba38b7006a1eR38"}}