{"action":"created","issue":{"url":"https://api.github.com/repos/OpenXT/installer/issues/6","labels_url":"https://api.github.com/repos/OpenXT/installer/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/OpenXT/installer/issues/6/comments","events_url":"https://api.github.com/repos/OpenXT/installer/issues/6/events","html_url":"https://github.com/OpenXT/installer/pull/6","id":101696841,"number":6,"title":"Dynamically create dom0 rootfs lv size.","user":{"login":"crogers1","id":1558431,"avatar_url":"https://avatars.githubusercontent.com/u/1558431?v=3","gravatar_id":"","url":"https://api.github.com/users/crogers1","html_url":"https://github.com/crogers1","followers_url":"https://api.github.com/users/crogers1/followers","following_url":"https://api.github.com/users/crogers1/following{/other_user}","gists_url":"https://api.github.com/users/crogers1/gists{/gist_id}","starred_url":"https://api.github.com/users/crogers1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crogers1/subscriptions","organizations_url":"https://api.github.com/users/crogers1/orgs","repos_url":"https://api.github.com/users/crogers1/repos","events_url":"https://api.github.com/users/crogers1/events{/privacy}","received_events_url":"https://api.github.com/users/crogers1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-18T16:37:25Z","updated_at":"2015-08-18T19:15:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OpenXT/installer/pulls/6","html_url":"https://github.com/OpenXT/installer/pull/6","diff_url":"https://github.com/OpenXT/installer/pull/6.diff","patch_url":"https://github.com/OpenXT/installer/pull/6.patch"},"body":"Signed-off-by: Chris Rogers <rogersc@ainfosec.com>"},"comment":{"url":"https://api.github.com/repos/OpenXT/installer/issues/comments/132322210","html_url":"https://github.com/OpenXT/installer/pull/6#issuecomment-132322210","issue_url":"https://api.github.com/repos/OpenXT/installer/issues/6","id":132322210,"user":{"login":"jean-edouard","id":7863904,"avatar_url":"https://avatars.githubusercontent.com/u/7863904?v=3","gravatar_id":"","url":"https://api.github.com/users/jean-edouard","html_url":"https://github.com/jean-edouard","followers_url":"https://api.github.com/users/jean-edouard/followers","following_url":"https://api.github.com/users/jean-edouard/following{/other_user}","gists_url":"https://api.github.com/users/jean-edouard/gists{/gist_id}","starred_url":"https://api.github.com/users/jean-edouard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jean-edouard/subscriptions","organizations_url":"https://api.github.com/users/jean-edouard/orgs","repos_url":"https://api.github.com/users/jean-edouard/repos","events_url":"https://api.github.com/users/jean-edouard/events{/privacy}","received_events_url":"https://api.github.com/users/jean-edouard/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T19:15:43Z","updated_at":"2015-08-18T19:15:43Z","body":"That looks good.\r\nFor getting the uncompressed size, I would have used something slightly more reliable like:\r\ngzip -l ${DOM0_ROOTFS} | tail -1 | awk '{print $2}'\r\nor the slower but 100% reliable:\r\nzcat ${DOM0_ROOTFS} | wc -c\r\nbut you're approach seems to work.\r\n\r\n+1"}}