{"action":"created","comment":{"url":"https://api.github.com/repos/yast/yast-installation/pulls/comments/56130679","id":56130679,"diff_hunk":"@@ -0,0 +1,52 @@\n+# Installer self-update\n+\n+Starting on version 3.1.174, yast2-install is to update itself during system\n+installation. This feature will help to solve problems with the installation\n+even after the media has been released. Check\n+[FATE#319716](https://fate.suse.com/319716) for a more in-depth rationale.\n+\n+## Basic workflow\n+\n+These are the basic steps performed by YaST in order to peform the update:\n+\n+1. During installation, YaST will look for an update in a given URL.\n+2. If an update is available, it will be downloaded. Otherwise,\n+the process will be silently skipped.\n+3. The update's PGP signature will be verified.\n+4. The update will be applied to the installation media.\n+5. YaST will be restarted and the installation will be resumed.\n+\n+## Update format\n+\n+YaST will use a Driver Update Disks (DUD) to pack the updates. To minimize\n+bandwidth and memory usage, all updates should be contained in a single DUD.\n+Moreover, to make maintenance of this feature simpler, the only allowed archive\n+format to use is `cpio` (default format for `mkdud`).\n+\n+## Where to find updates\n+\n+Update's URL can be hard-coded in `control.xml` file or specified setting\n+`SelfUpdate` option in Linuxrc.\n+\n+The URL can contain a variable `$arch` that will be replaced by the system's\n+architecture.\n+\n+```xml\n+<globals>\n+  <self_update_url>http://updates.suse.com/sle12/$arch/update.dud</self_update_url>","path":"doc/SELF_UPDATE.md","position":36,"original_position":36,"commit_id":"ad0ac7c4f87c15863e7e56a6270b6ed24739798d","original_commit_id":"ad0ac7c4f87c15863e7e56a6270b6ed24739798d","user":{"login":"kobliha","id":463995,"avatar_url":"https://avatars.githubusercontent.com/u/463995?v=3","gravatar_id":"","url":"https://api.github.com/users/kobliha","html_url":"https://github.com/kobliha","followers_url":"https://api.github.com/users/kobliha/followers","following_url":"https://api.github.com/users/kobliha/following{/other_user}","gists_url":"https://api.github.com/users/kobliha/gists{/gist_id}","starred_url":"https://api.github.com/users/kobliha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kobliha/subscriptions","organizations_url":"https://api.github.com/users/kobliha/orgs","repos_url":"https://api.github.com/users/kobliha/repos","events_url":"https://api.github.com/users/kobliha/events{/privacy}","received_events_url":"https://api.github.com/users/kobliha/received_events","type":"User","site_admin":false},"body":"Can we handle, e.g., `HTTP/1.1 301 Moved Permanently` here?","created_at":"2016-03-15T08:49:51Z","updated_at":"2016-03-15T08:49:51Z","html_url":"https://github.com/yast/yast-installation/pull/351#discussion_r56130679","pull_request_url":"https://api.github.com/repos/yast/yast-installation/pulls/351","_links":{"self":{"href":"https://api.github.com/repos/yast/yast-installation/pulls/comments/56130679"},"html":{"href":"https://github.com/yast/yast-installation/pull/351#discussion_r56130679"},"pull_request":{"href":"https://api.github.com/repos/yast/yast-installation/pulls/351"}}},"pull_request":{"url":"https://api.github.com/repos/yast/yast-installation/pulls/351","id":62826331,"html_url":"https://github.com/yast/yast-installation/pull/351","diff_url":"https://github.com/yast/yast-installation/pull/351.diff","patch_url":"https://github.com/yast/yast-installation/pull/351.patch","issue_url":"https://api.github.com/repos/yast/yast-installation/issues/351","number":351,"state":"open","locked":false,"title":"Add a technical document about self-update feature","user":{"login":"imobach","id":15836,"avatar_url":"https://avatars.githubusercontent.com/u/15836?v=3","gravatar_id":"","url":"https://api.github.com/users/imobach","html_url":"https://github.com/imobach","followers_url":"https://api.github.com/users/imobach/followers","following_url":"https://api.github.com/users/imobach/following{/other_user}","gists_url":"https://api.github.com/users/imobach/gists{/gist_id}","starred_url":"https://api.github.com/users/imobach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imobach/subscriptions","organizations_url":"https://api.github.com/users/imobach/orgs","repos_url":"https://api.github.com/users/imobach/repos","events_url":"https://api.github.com/users/imobach/events{/privacy}","received_events_url":"https://api.github.com/users/imobach/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-14T22:15:01Z","updated_at":"2016-03-15T08:49:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"036c07262827eeaf8ce25d7838400ba138d0882c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yast/yast-installation/pulls/351/commits","review_comments_url":"https://api.github.com/repos/yast/yast-installation/pulls/351/comments","review_comment_url":"https://api.github.com/repos/yast/yast-installation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yast/yast-installation/issues/351/comments","statuses_url":"https://api.github.com/repos/yast/yast-installation/statuses/ad0ac7c4f87c15863e7e56a6270b6ed24739798d","head":{"label":"imobach:self-update-documentation","ref":"self-update-documentation","sha":"ad0ac7c4f87c15863e7e56a6270b6ed24739798d","user":{"login":"imobach","id":15836,"avatar_url":"https://avatars.githubusercontent.com/u/15836?v=3","gravatar_id":"","url":"https://api.github.com/users/imobach","html_url":"https://github.com/imobach","followers_url":"https://api.github.com/users/imobach/followers","following_url":"https://api.github.com/users/imobach/following{/other_user}","gists_url":"https://api.github.com/users/imobach/gists{/gist_id}","starred_url":"https://api.github.com/users/imobach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imobach/subscriptions","organizations_url":"https://api.github.com/users/imobach/orgs","repos_url":"https://api.github.com/users/imobach/repos","events_url":"https://api.github.com/users/imobach/events{/privacy}","received_events_url":"https://api.github.com/users/imobach/received_events","type":"User","site_admin":false},"repo":{"id":34524024,"name":"yast-installation","full_name":"imobach/yast-installation","owner":{"login":"imobach","id":15836,"avatar_url":"https://avatars.githubusercontent.com/u/15836?v=3","gravatar_id":"","url":"https://api.github.com/users/imobach","html_url":"https://github.com/imobach","followers_url":"https://api.github.com/users/imobach/followers","following_url":"https://api.github.com/users/imobach/following{/other_user}","gists_url":"https://api.github.com/users/imobach/gists{/gist_id}","starred_url":"https://api.github.com/users/imobach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imobach/subscriptions","organizations_url":"https://api.github.com/users/imobach/orgs","repos_url":"https://api.github.com/users/imobach/repos","events_url":"https://api.github.com/users/imobach/events{/privacy}","received_events_url":"https://api.github.com/users/imobach/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/imobach/yast-installation","description":"YaST module installation","fork":true,"url":"https://api.github.com/repos/imobach/yast-installation","forks_url":"https://api.github.com/repos/imobach/yast-installation/forks","keys_url":"https://api.github.com/repos/imobach/yast-installation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/imobach/yast-installation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/imobach/yast-installation/teams","hooks_url":"https://api.github.com/repos/imobach/yast-installation/hooks","issue_events_url":"https://api.github.com/repos/imobach/yast-installation/issues/events{/number}","events_url":"https://api.github.com/repos/imobach/yast-installation/events","assignees_url":"https://api.github.com/repos/imobach/yast-installation/assignees{/user}","branches_url":"https://api.github.com/repos/imobach/yast-installation/branches{/branch}","tags_url":"https://api.github.com/repos/imobach/yast-installation/tags","blobs_url":"https://api.github.com/repos/imobach/yast-installation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/imobach/yast-installation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/imobach/yast-installation/git/refs{/sha}","trees_url":"https://api.github.com/repos/imobach/yast-installation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/imobach/yast-installation/statuses/{sha}","languages_url":"https://api.github.com/repos/imobach/yast-installation/languages","stargazers_url":"https://api.github.com/repos/imobach/yast-installation/stargazers","contributors_url":"https://api.github.com/repos/imobach/yast-installation/contributors","subscribers_url":"https://api.github.com/repos/imobach/yast-installation/subscribers","subscription_url":"https://api.github.com/repos/imobach/yast-installation/subscription","commits_url":"https://api.github.com/repos/imobach/yast-installation/commits{/sha}","git_commits_url":"https://api.github.com/repos/imobach/yast-installation/git/commits{/sha}","comments_url":"https://api.github.com/repos/imobach/yast-installation/comments{/number}","issue_comment_url":"https://api.github.com/repos/imobach/yast-installation/issues/comments{/number}","contents_url":"https://api.github.com/repos/imobach/yast-installation/contents/{+path}","compare_url":"https://api.github.com/repos/imobach/yast-installation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/imobach/yast-installation/merges","archive_url":"https://api.github.com/repos/imobach/yast-installation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/imobach/yast-installation/downloads","issues_url":"https://api.github.com/repos/imobach/yast-installation/issues{/number}","pulls_url":"https://api.github.com/repos/imobach/yast-installation/pulls{/number}","milestones_url":"https://api.github.com/repos/imobach/yast-installation/milestones{/number}","notifications_url":"https://api.github.com/repos/imobach/yast-installation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/imobach/yast-installation/labels{/name}","releases_url":"https://api.github.com/repos/imobach/yast-installation/releases{/id}","deployments_url":"https://api.github.com/repos/imobach/yast-installation/deployments","created_at":"2015-04-24T14:43:39Z","updated_at":"2015-04-24T14:43:40Z","pushed_at":"2016-03-14T22:17:22Z","git_url":"git://github.com/imobach/yast-installation.git","ssh_url":"git@github.com:imobach/yast-installation.git","clone_url":"https://github.com/imobach/yast-installation.git","svn_url":"https://github.com/imobach/yast-installation","homepage":"http://en.opensuse.org/Portal:YaST","size":30732,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"yast:master","ref":"master","sha":"4ae8be50b48b797e490e45d94f2a44b0338f20a9","user":{"login":"yast","id":909990,"avatar_url":"https://avatars.githubusercontent.com/u/909990?v=3","gravatar_id":"","url":"https://api.github.com/users/yast","html_url":"https://github.com/yast","followers_url":"https://api.github.com/users/yast/followers","following_url":"https://api.github.com/users/yast/following{/other_user}","gists_url":"https://api.github.com/users/yast/gists{/gist_id}","starred_url":"https://api.github.com/users/yast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yast/subscriptions","organizations_url":"https://api.github.com/users/yast/orgs","repos_url":"https://api.github.com/users/yast/repos","events_url":"https://api.github.com/users/yast/events{/privacy}","received_events_url":"https://api.github.com/users/yast/received_events","type":"Organization","site_admin":false},"repo":{"id":4368120,"name":"yast-installation","full_name":"yast/yast-installation","owner":{"login":"yast","id":909990,"avatar_url":"https://avatars.githubusercontent.com/u/909990?v=3","gravatar_id":"","url":"https://api.github.com/users/yast","html_url":"https://github.com/yast","followers_url":"https://api.github.com/users/yast/followers","following_url":"https://api.github.com/users/yast/following{/other_user}","gists_url":"https://api.github.com/users/yast/gists{/gist_id}","starred_url":"https://api.github.com/users/yast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yast/subscriptions","organizations_url":"https://api.github.com/users/yast/orgs","repos_url":"https://api.github.com/users/yast/repos","events_url":"https://api.github.com/users/yast/events{/privacy}","received_events_url":"https://api.github.com/users/yast/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yast/yast-installation","description":"YaST module installation","fork":false,"url":"https://api.github.com/repos/yast/yast-installation","forks_url":"https://api.github.com/repos/yast/yast-installation/forks","keys_url":"https://api.github.com/repos/yast/yast-installation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yast/yast-installation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yast/yast-installation/teams","hooks_url":"https://api.github.com/repos/yast/yast-installation/hooks","issue_events_url":"https://api.github.com/repos/yast/yast-installation/issues/events{/number}","events_url":"https://api.github.com/repos/yast/yast-installation/events","assignees_url":"https://api.github.com/repos/yast/yast-installation/assignees{/user}","branches_url":"https://api.github.com/repos/yast/yast-installation/branches{/branch}","tags_url":"https://api.github.com/repos/yast/yast-installation/tags","blobs_url":"https://api.github.com/repos/yast/yast-installation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yast/yast-installation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yast/yast-installation/git/refs{/sha}","trees_url":"https://api.github.com/repos/yast/yast-installation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yast/yast-installation/statuses/{sha}","languages_url":"https://api.github.com/repos/yast/yast-installation/languages","stargazers_url":"https://api.github.com/repos/yast/yast-installation/stargazers","contributors_url":"https://api.github.com/repos/yast/yast-installation/contributors","subscribers_url":"https://api.github.com/repos/yast/yast-installation/subscribers","subscription_url":"https://api.github.com/repos/yast/yast-installation/subscription","commits_url":"https://api.github.com/repos/yast/yast-installation/commits{/sha}","git_commits_url":"https://api.github.com/repos/yast/yast-installation/git/commits{/sha}","comments_url":"https://api.github.com/repos/yast/yast-installation/comments{/number}","issue_comment_url":"https://api.github.com/repos/yast/yast-installation/issues/comments{/number}","contents_url":"https://api.github.com/repos/yast/yast-installation/contents/{+path}","compare_url":"https://api.github.com/repos/yast/yast-installation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yast/yast-installation/merges","archive_url":"https://api.github.com/repos/yast/yast-installation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yast/yast-installation/downloads","issues_url":"https://api.github.com/repos/yast/yast-installation/issues{/number}","pulls_url":"https://api.github.com/repos/yast/yast-installation/pulls{/number}","milestones_url":"https://api.github.com/repos/yast/yast-installation/milestones{/number}","notifications_url":"https://api.github.com/repos/yast/yast-installation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yast/yast-installation/labels{/name}","releases_url":"https://api.github.com/repos/yast/yast-installation/releases{/id}","deployments_url":"https://api.github.com/repos/yast/yast-installation/deployments","created_at":"2012-05-18T10:23:52Z","updated_at":"2016-01-11T15:30:41Z","pushed_at":"2016-03-15T08:49:07Z","git_url":"git://github.com/yast/yast-installation.git","ssh_url":"git@github.com:yast/yast-installation.git","clone_url":"https://github.com/yast/yast-installation.git","svn_url":"https://github.com/yast/yast-installation","homepage":"http://en.opensuse.org/Portal:YaST","size":33542,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":5,"forks":21,"open_issues":5,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yast/yast-installation/pulls/351"},"html":{"href":"https://github.com/yast/yast-installation/pull/351"},"issue":{"href":"https://api.github.com/repos/yast/yast-installation/issues/351"},"comments":{"href":"https://api.github.com/repos/yast/yast-installation/issues/351/comments"},"review_comments":{"href":"https://api.github.com/repos/yast/yast-installation/pulls/351/comments"},"review_comment":{"href":"https://api.github.com/repos/yast/yast-installation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yast/yast-installation/pulls/351/commits"},"statuses":{"href":"https://api.github.com/repos/yast/yast-installation/statuses/ad0ac7c4f87c15863e7e56a6270b6ed24739798d"}}}}