{"action":"created","issue":{"url":"https://api.github.com/repos/FuturePilot/Pi2buntu/issues/16","labels_url":"https://api.github.com/repos/FuturePilot/Pi2buntu/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/FuturePilot/Pi2buntu/issues/16/comments","events_url":"https://api.github.com/repos/FuturePilot/Pi2buntu/issues/16/events","html_url":"https://github.com/FuturePilot/Pi2buntu/pull/16","id":91102365,"number":16,"title":"Improvement","user":{"login":"sghazagh","id":12246858,"avatar_url":"https://avatars.githubusercontent.com/u/12246858?v=3","gravatar_id":"","url":"https://api.github.com/users/sghazagh","html_url":"https://github.com/sghazagh","followers_url":"https://api.github.com/users/sghazagh/followers","following_url":"https://api.github.com/users/sghazagh/following{/other_user}","gists_url":"https://api.github.com/users/sghazagh/gists{/gist_id}","starred_url":"https://api.github.com/users/sghazagh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sghazagh/subscriptions","organizations_url":"https://api.github.com/users/sghazagh/orgs","repos_url":"https://api.github.com/users/sghazagh/repos","events_url":"https://api.github.com/users/sghazagh/events{/privacy}","received_events_url":"https://api.github.com/users/sghazagh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-25T23:24:46Z","updated_at":"2015-06-30T09:13:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/FuturePilot/Pi2buntu/pulls/16","html_url":"https://github.com/FuturePilot/Pi2buntu/pull/16","diff_url":"https://github.com/FuturePilot/Pi2buntu/pull/16.diff","patch_url":"https://github.com/FuturePilot/Pi2buntu/pull/16.patch"},"body":"Hi,\r\nI have added few line of codes to improve the image creation process.\r\nYou do not need to fix the size of SD. Mine will calculate the rootfs size with minimum required free space (ext4 partition size) and add to bootsize (vfat partition size) and make the image size with combination of these two.\r\n\r\nAlso have control to change these values if required.\r\nhave used kpartx to use mapper instead of two losetup. Makes it easier...\r\n\r\ncheers,\r\nSaeid Ghazagh"},"comment":{"url":"https://api.github.com/repos/FuturePilot/Pi2buntu/issues/comments/117067844","html_url":"https://github.com/FuturePilot/Pi2buntu/pull/16#issuecomment-117067844","issue_url":"https://api.github.com/repos/FuturePilot/Pi2buntu/issues/16","id":117067844,"user":{"login":"sghazagh","id":12246858,"avatar_url":"https://avatars.githubusercontent.com/u/12246858?v=3","gravatar_id":"","url":"https://api.github.com/users/sghazagh","html_url":"https://github.com/sghazagh","followers_url":"https://api.github.com/users/sghazagh/followers","following_url":"https://api.github.com/users/sghazagh/following{/other_user}","gists_url":"https://api.github.com/users/sghazagh/gists{/gist_id}","starred_url":"https://api.github.com/users/sghazagh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sghazagh/subscriptions","organizations_url":"https://api.github.com/users/sghazagh/orgs","repos_url":"https://api.github.com/users/sghazagh/repos","events_url":"https://api.github.com/users/sghazagh/events{/privacy}","received_events_url":"https://api.github.com/users/sghazagh/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T09:13:51Z","updated_at":"2015-06-30T09:13:51Z","body":"Hi,When did you check that?I have found a small typo error which has been fixed.I have checked several time and have used it an hour before.All are ok. Try again and you should be alright.This way is much easier and quicker.Let me know the result...\n \n\n\n     On Tuesday, June 30, 2015 12:08 PM, Nick <notifications@github.com> wrote:\n   \n\n The fdisk part of your modifications is failingWelcome to fdisk (util-linux 2.25.2).\nChanges will remain in memory only, until you decide to write them.\nBe careful before using the write command.\n\nDevice does not contain a recognized partition table.\nCreated a new DOS disklabel with disk identifier 0xf33c269e.\n\nCommand (m for help): Partition type\n   p   primary (0 primary, 0 extended, 4 free)\n   e   extended (container for logical partitions)\nSelect (default p): Partition number (1-4, default 1): First sector (2048-1820671, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (2048-1820671, default 1820671): \nCreated a new partition 1 of type 'Linux' and of size 64 MiB.\n\nCommand (m for help): Selected partition 1\nHex code (type L to list all codes): If you have created or modified any DOS 6.x partitions, please see the fdisk documentation for additional information.\nChanged type of partition 'Linux' to 'W95 FAT32 (LBA)'.\n\nCommand (m for help): Partition type\n   p   primary (1 primary, 0 extended, 3 free)\n   e   extended (container for logical partitions)\nSelect (default p): Partition number (2-4, default 2): First sector (133120-1820671, default 133120): Last sector, +sectors or +size{K,M,G,T,P} (133120-1820671, default 1820671): \nCreated a new partition 2 of type 'Linux' and of size 824 MiB.\n\nCommand (m for help): Partition number (1,2, default 2): \nThe bootable flag on partition 1 is enabled now.\n\nCommand (m for help): The partition table has been altered.\nCalling ioctl() to re-read partition table.\nRe-reading the partition table failed.: Invalid argument\n\nThe kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).\n—\nReply to this email directly or view it on GitHub.   \n\n  "}}