{"action":"created","comment":{"url":"https://api.github.com/repos/SUSE/kiwi/pulls/comments/75451046","id":75451046,"diff_hunk":"@@ -5525,18 +5540,25 @@ function waitForStorageDevice {\n     # which could be a whole disk or a partition.\n     # the function will wait until the size of the\n     # storage device could be obtained or the check\n-    # counter equals 4\n+    # counter equals 30. For USB devices it waits\n+    # only until check counter equals 2.\n     # ----\n     local IFS=$IFS_ORIG\n     local device=$1\n     local check=0\n+    local transport=\"`getDeviceTransportType $device`\"\n+    if [[ $transport == *\"usb\"* ]];then","path":"kiwi/boot/functions.sh","position":null,"original_position":34,"commit_id":"d62d9db9c0a6d445426b556b0e1424da597a711e","original_commit_id":"1f77fa2b311b1e55a171ae7df685802edf82ac59","user":{"login":"isbm","id":1073714,"avatar_url":"https://avatars.githubusercontent.com/u/1073714?v=3","gravatar_id":"","url":"https://api.github.com/users/isbm","html_url":"https://github.com/isbm","followers_url":"https://api.github.com/users/isbm/followers","following_url":"https://api.github.com/users/isbm/following{/other_user}","gists_url":"https://api.github.com/users/isbm/gists{/gist_id}","starred_url":"https://api.github.com/users/isbm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isbm/subscriptions","organizations_url":"https://api.github.com/users/isbm/orgs","repos_url":"https://api.github.com/users/isbm/repos","events_url":"https://api.github.com/users/isbm/events{/privacy}","received_events_url":"https://api.github.com/users/isbm/received_events","type":"User","site_admin":false},"body":"@davidcassany @schaefi And you can also use a regexp:\r\n```bash\r\nif [[ $transport =~ \"usb\" ]]; then\r\n...\r\nfi\r\n```\r\n\r\nP.S. Please keep a whitespace after `;` and before `then` :wink: ","created_at":"2016-08-19T09:20:03Z","updated_at":"2016-08-19T09:20:03Z","html_url":"https://github.com/SUSE/kiwi/pull/123#discussion_r75451046","pull_request_url":"https://api.github.com/repos/SUSE/kiwi/pulls/123","_links":{"self":{"href":"https://api.github.com/repos/SUSE/kiwi/pulls/comments/75451046"},"html":{"href":"https://github.com/SUSE/kiwi/pull/123#discussion_r75451046"},"pull_request":{"href":"https://api.github.com/repos/SUSE/kiwi/pulls/123"}}},"pull_request":{"url":"https://api.github.com/repos/SUSE/kiwi/pulls/123","id":81815499,"html_url":"https://github.com/SUSE/kiwi/pull/123","diff_url":"https://github.com/SUSE/kiwi/pull/123.diff","patch_url":"https://github.com/SUSE/kiwi/pull/123.patch","issue_url":"https://api.github.com/repos/SUSE/kiwi/issues/123","number":123,"state":"open","locked":false,"title":"Wait for storage device patch","user":{"login":"davidcassany","id":6428768,"avatar_url":"https://avatars.githubusercontent.com/u/6428768?v=3","gravatar_id":"","url":"https://api.github.com/users/davidcassany","html_url":"https://github.com/davidcassany","followers_url":"https://api.github.com/users/davidcassany/followers","following_url":"https://api.github.com/users/davidcassany/following{/other_user}","gists_url":"https://api.github.com/users/davidcassany/gists{/gist_id}","starred_url":"https://api.github.com/users/davidcassany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidcassany/subscriptions","organizations_url":"https://api.github.com/users/davidcassany/orgs","repos_url":"https://api.github.com/users/davidcassany/repos","events_url":"https://api.github.com/users/davidcassany/events{/privacy}","received_events_url":"https://api.github.com/users/davidcassany/received_events","type":"User","site_admin":false},"body":"Fixes bugzilla issue 992992\r\n\r\nChanges proposed in this pull request:\r\n* Added getDeviceTransportType method in functions.sh\r\n* Modified waitForStorageDevice method. Now it reacts depending on the device type.\r\n","created_at":"2016-08-18T13:28:29Z","updated_at":"2016-08-19T09:20:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d7f1970e3d383591898165b0bae3424d081b545c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/SUSE/kiwi/pulls/123/commits","review_comments_url":"https://api.github.com/repos/SUSE/kiwi/pulls/123/comments","review_comment_url":"https://api.github.com/repos/SUSE/kiwi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SUSE/kiwi/issues/123/comments","statuses_url":"https://api.github.com/repos/SUSE/kiwi/statuses/d62d9db9c0a6d445426b556b0e1424da597a711e","head":{"label":"SUSE:waitForStorageDevice_patch","ref":"waitForStorageDevice_patch","sha":"d62d9db9c0a6d445426b556b0e1424da597a711e","user":{"login":"SUSE","id":1067733,"avatar_url":"https://avatars.githubusercontent.com/u/1067733?v=3","gravatar_id":"","url":"https://api.github.com/users/SUSE","html_url":"https://github.com/SUSE","followers_url":"https://api.github.com/users/SUSE/followers","following_url":"https://api.github.com/users/SUSE/following{/other_user}","gists_url":"https://api.github.com/users/SUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/SUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SUSE/subscriptions","organizations_url":"https://api.github.com/users/SUSE/orgs","repos_url":"https://api.github.com/users/SUSE/repos","events_url":"https://api.github.com/users/SUSE/events{/privacy}","received_events_url":"https://api.github.com/users/SUSE/received_events","type":"Organization","site_admin":false},"repo":{"id":47460440,"name":"kiwi","full_name":"SUSE/kiwi","owner":{"login":"SUSE","id":1067733,"avatar_url":"https://avatars.githubusercontent.com/u/1067733?v=3","gravatar_id":"","url":"https://api.github.com/users/SUSE","html_url":"https://github.com/SUSE","followers_url":"https://api.github.com/users/SUSE/followers","following_url":"https://api.github.com/users/SUSE/following{/other_user}","gists_url":"https://api.github.com/users/SUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/SUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SUSE/subscriptions","organizations_url":"https://api.github.com/users/SUSE/orgs","repos_url":"https://api.github.com/users/SUSE/repos","events_url":"https://api.github.com/users/SUSE/events{/privacy}","received_events_url":"https://api.github.com/users/SUSE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SUSE/kiwi","description":"KIWI—Appliance Builder Next Generation","fork":false,"url":"https://api.github.com/repos/SUSE/kiwi","forks_url":"https://api.github.com/repos/SUSE/kiwi/forks","keys_url":"https://api.github.com/repos/SUSE/kiwi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SUSE/kiwi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SUSE/kiwi/teams","hooks_url":"https://api.github.com/repos/SUSE/kiwi/hooks","issue_events_url":"https://api.github.com/repos/SUSE/kiwi/issues/events{/number}","events_url":"https://api.github.com/repos/SUSE/kiwi/events","assignees_url":"https://api.github.com/repos/SUSE/kiwi/assignees{/user}","branches_url":"https://api.github.com/repos/SUSE/kiwi/branches{/branch}","tags_url":"https://api.github.com/repos/SUSE/kiwi/tags","blobs_url":"https://api.github.com/repos/SUSE/kiwi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SUSE/kiwi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SUSE/kiwi/git/refs{/sha}","trees_url":"https://api.github.com/repos/SUSE/kiwi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SUSE/kiwi/statuses/{sha}","languages_url":"https://api.github.com/repos/SUSE/kiwi/languages","stargazers_url":"https://api.github.com/repos/SUSE/kiwi/stargazers","contributors_url":"https://api.github.com/repos/SUSE/kiwi/contributors","subscribers_url":"https://api.github.com/repos/SUSE/kiwi/subscribers","subscription_url":"https://api.github.com/repos/SUSE/kiwi/subscription","commits_url":"https://api.github.com/repos/SUSE/kiwi/commits{/sha}","git_commits_url":"https://api.github.com/repos/SUSE/kiwi/git/commits{/sha}","comments_url":"https://api.github.com/repos/SUSE/kiwi/comments{/number}","issue_comment_url":"https://api.github.com/repos/SUSE/kiwi/issues/comments{/number}","contents_url":"https://api.github.com/repos/SUSE/kiwi/contents/{+path}","compare_url":"https://api.github.com/repos/SUSE/kiwi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SUSE/kiwi/merges","archive_url":"https://api.github.com/repos/SUSE/kiwi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SUSE/kiwi/downloads","issues_url":"https://api.github.com/repos/SUSE/kiwi/issues{/number}","pulls_url":"https://api.github.com/repos/SUSE/kiwi/pulls{/number}","milestones_url":"https://api.github.com/repos/SUSE/kiwi/milestones{/number}","notifications_url":"https://api.github.com/repos/SUSE/kiwi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SUSE/kiwi/labels{/name}","releases_url":"https://api.github.com/repos/SUSE/kiwi/releases{/id}","deployments_url":"https://api.github.com/repos/SUSE/kiwi/deployments","created_at":"2015-12-05T15:11:01Z","updated_at":"2016-07-26T23:24:00Z","pushed_at":"2016-08-19T07:22:37Z","git_url":"git://github.com/SUSE/kiwi.git","ssh_url":"git@github.com:SUSE/kiwi.git","clone_url":"https://github.com/SUSE/kiwi.git","svn_url":"https://github.com/SUSE/kiwi","homepage":"https://suse.github.io/kiwi","size":6140,"stargazers_count":13,"watchers_count":13,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":8,"mirror_url":null,"open_issues_count":13,"forks":8,"open_issues":13,"watchers":13,"default_branch":"master"}},"base":{"label":"SUSE:master","ref":"master","sha":"40547b4524cb628f8eba77e0b552597ad2a6a112","user":{"login":"SUSE","id":1067733,"avatar_url":"https://avatars.githubusercontent.com/u/1067733?v=3","gravatar_id":"","url":"https://api.github.com/users/SUSE","html_url":"https://github.com/SUSE","followers_url":"https://api.github.com/users/SUSE/followers","following_url":"https://api.github.com/users/SUSE/following{/other_user}","gists_url":"https://api.github.com/users/SUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/SUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SUSE/subscriptions","organizations_url":"https://api.github.com/users/SUSE/orgs","repos_url":"https://api.github.com/users/SUSE/repos","events_url":"https://api.github.com/users/SUSE/events{/privacy}","received_events_url":"https://api.github.com/users/SUSE/received_events","type":"Organization","site_admin":false},"repo":{"id":47460440,"name":"kiwi","full_name":"SUSE/kiwi","owner":{"login":"SUSE","id":1067733,"avatar_url":"https://avatars.githubusercontent.com/u/1067733?v=3","gravatar_id":"","url":"https://api.github.com/users/SUSE","html_url":"https://github.com/SUSE","followers_url":"https://api.github.com/users/SUSE/followers","following_url":"https://api.github.com/users/SUSE/following{/other_user}","gists_url":"https://api.github.com/users/SUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/SUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SUSE/subscriptions","organizations_url":"https://api.github.com/users/SUSE/orgs","repos_url":"https://api.github.com/users/SUSE/repos","events_url":"https://api.github.com/users/SUSE/events{/privacy}","received_events_url":"https://api.github.com/users/SUSE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SUSE/kiwi","description":"KIWI—Appliance Builder Next Generation","fork":false,"url":"https://api.github.com/repos/SUSE/kiwi","forks_url":"https://api.github.com/repos/SUSE/kiwi/forks","keys_url":"https://api.github.com/repos/SUSE/kiwi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SUSE/kiwi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SUSE/kiwi/teams","hooks_url":"https://api.github.com/repos/SUSE/kiwi/hooks","issue_events_url":"https://api.github.com/repos/SUSE/kiwi/issues/events{/number}","events_url":"https://api.github.com/repos/SUSE/kiwi/events","assignees_url":"https://api.github.com/repos/SUSE/kiwi/assignees{/user}","branches_url":"https://api.github.com/repos/SUSE/kiwi/branches{/branch}","tags_url":"https://api.github.com/repos/SUSE/kiwi/tags","blobs_url":"https://api.github.com/repos/SUSE/kiwi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SUSE/kiwi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SUSE/kiwi/git/refs{/sha}","trees_url":"https://api.github.com/repos/SUSE/kiwi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SUSE/kiwi/statuses/{sha}","languages_url":"https://api.github.com/repos/SUSE/kiwi/languages","stargazers_url":"https://api.github.com/repos/SUSE/kiwi/stargazers","contributors_url":"https://api.github.com/repos/SUSE/kiwi/contributors","subscribers_url":"https://api.github.com/repos/SUSE/kiwi/subscribers","subscription_url":"https://api.github.com/repos/SUSE/kiwi/subscription","commits_url":"https://api.github.com/repos/SUSE/kiwi/commits{/sha}","git_commits_url":"https://api.github.com/repos/SUSE/kiwi/git/commits{/sha}","comments_url":"https://api.github.com/repos/SUSE/kiwi/comments{/number}","issue_comment_url":"https://api.github.com/repos/SUSE/kiwi/issues/comments{/number}","contents_url":"https://api.github.com/repos/SUSE/kiwi/contents/{+path}","compare_url":"https://api.github.com/repos/SUSE/kiwi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SUSE/kiwi/merges","archive_url":"https://api.github.com/repos/SUSE/kiwi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SUSE/kiwi/downloads","issues_url":"https://api.github.com/repos/SUSE/kiwi/issues{/number}","pulls_url":"https://api.github.com/repos/SUSE/kiwi/pulls{/number}","milestones_url":"https://api.github.com/repos/SUSE/kiwi/milestones{/number}","notifications_url":"https://api.github.com/repos/SUSE/kiwi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SUSE/kiwi/labels{/name}","releases_url":"https://api.github.com/repos/SUSE/kiwi/releases{/id}","deployments_url":"https://api.github.com/repos/SUSE/kiwi/deployments","created_at":"2015-12-05T15:11:01Z","updated_at":"2016-07-26T23:24:00Z","pushed_at":"2016-08-19T07:22:37Z","git_url":"git://github.com/SUSE/kiwi.git","ssh_url":"git@github.com:SUSE/kiwi.git","clone_url":"https://github.com/SUSE/kiwi.git","svn_url":"https://github.com/SUSE/kiwi","homepage":"https://suse.github.io/kiwi","size":6140,"stargazers_count":13,"watchers_count":13,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":8,"mirror_url":null,"open_issues_count":13,"forks":8,"open_issues":13,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SUSE/kiwi/pulls/123"},"html":{"href":"https://github.com/SUSE/kiwi/pull/123"},"issue":{"href":"https://api.github.com/repos/SUSE/kiwi/issues/123"},"comments":{"href":"https://api.github.com/repos/SUSE/kiwi/issues/123/comments"},"review_comments":{"href":"https://api.github.com/repos/SUSE/kiwi/pulls/123/comments"},"review_comment":{"href":"https://api.github.com/repos/SUSE/kiwi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SUSE/kiwi/pulls/123/commits"},"statuses":{"href":"https://api.github.com/repos/SUSE/kiwi/statuses/d62d9db9c0a6d445426b556b0e1424da597a711e"}}}}
{"actor":{"display_login":"isbm"}}