{"action":"created","issue":{"url":"https://api.github.com/repos/GNOME/ostree/issues/210","repository_url":"https://api.github.com/repos/GNOME/ostree","labels_url":"https://api.github.com/repos/GNOME/ostree/issues/210/labels{/name}","comments_url":"https://api.github.com/repos/GNOME/ostree/issues/210/comments","events_url":"https://api.github.com/repos/GNOME/ostree/issues/210/events","html_url":"https://github.com/GNOME/ostree/pull/210","id":141959969,"number":210,"title":"admin: Add a `dup` command","user":{"login":"cgwalters","id":244096,"avatar_url":"https://avatars.githubusercontent.com/u/244096?v=3","gravatar_id":"","url":"https://api.github.com/users/cgwalters","html_url":"https://github.com/cgwalters","followers_url":"https://api.github.com/users/cgwalters/followers","following_url":"https://api.github.com/users/cgwalters/following{/other_user}","gists_url":"https://api.github.com/users/cgwalters/gists{/gist_id}","starred_url":"https://api.github.com/users/cgwalters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgwalters/subscriptions","organizations_url":"https://api.github.com/users/cgwalters/orgs","repos_url":"https://api.github.com/users/cgwalters/repos","events_url":"https://api.github.com/users/cgwalters/events{/privacy}","received_events_url":"https://api.github.com/users/cgwalters/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-18T19:37:05Z","updated_at":"2016-03-18T20:15:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/GNOME/ostree/pulls/210","html_url":"https://github.com/GNOME/ostree/pull/210","diff_url":"https://github.com/GNOME/ostree/pull/210.diff","patch_url":"https://github.com/GNOME/ostree/pull/210.patch"},"body":"I'm trying to improve the developer experience on OSTree-managed\r\nsystems, and I had an epiphany the other day - there's no reason we\r\nhave to be absolutely against mutating the current rootfs live.  The\r\nkey should be making it easy to rollback/reset to a known good state.\r\n\r\nThis new `dup` command isn't a full solution by any means, but it's\r\na step towards a workflow that would look like this:\r\n\r\n```\r\nostree admin dup          # clone the current root\r\nostree admin dev-unlock   # remove the ro bind mount, and add rofiles-fuse\r\nostree admin dev-reset    # not sure of the name...but basically resync\r\n                          # files in the current root from a checkout\r\n```"},"comment":{"url":"https://api.github.com/repos/GNOME/ostree/issues/comments/198524777","html_url":"https://github.com/GNOME/ostree/pull/210#issuecomment-198524777","issue_url":"https://api.github.com/repos/GNOME/ostree/issues/210","id":198524777,"user":{"login":"jlebon","id":11934099,"avatar_url":"https://avatars.githubusercontent.com/u/11934099?v=3","gravatar_id":"","url":"https://api.github.com/users/jlebon","html_url":"https://github.com/jlebon","followers_url":"https://api.github.com/users/jlebon/followers","following_url":"https://api.github.com/users/jlebon/following{/other_user}","gists_url":"https://api.github.com/users/jlebon/gists{/gist_id}","starred_url":"https://api.github.com/users/jlebon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlebon/subscriptions","organizations_url":"https://api.github.com/users/jlebon/orgs","repos_url":"https://api.github.com/users/jlebon/repos","events_url":"https://api.github.com/users/jlebon/events{/privacy}","received_events_url":"https://api.github.com/users/jlebon/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T20:15:21Z","updated_at":"2016-03-18T20:15:21Z","body":"Hmm, interesting idea.\r\nWould this reset also delete new files created in the mount?"}}