{"action":"created","issue":{"url":"https://api.github.com/repos/RPi-Distro/pi-gen/issues/4","repository_url":"https://api.github.com/repos/RPi-Distro/pi-gen","labels_url":"https://api.github.com/repos/RPi-Distro/pi-gen/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/RPi-Distro/pi-gen/issues/4/comments","events_url":"https://api.github.com/repos/RPi-Distro/pi-gen/issues/4/events","html_url":"https://github.com/RPi-Distro/pi-gen/pull/4","id":152627715,"number":4,"title":"Modifications to allow for basic Raspbian Lite build and image creation","user":{"login":"spiderkeys","id":859469,"avatar_url":"https://avatars.githubusercontent.com/u/859469?v=3","gravatar_id":"","url":"https://api.github.com/users/spiderkeys","html_url":"https://github.com/spiderkeys","followers_url":"https://api.github.com/users/spiderkeys/followers","following_url":"https://api.github.com/users/spiderkeys/following{/other_user}","gists_url":"https://api.github.com/users/spiderkeys/gists{/gist_id}","starred_url":"https://api.github.com/users/spiderkeys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spiderkeys/subscriptions","organizations_url":"https://api.github.com/users/spiderkeys/orgs","repos_url":"https://api.github.com/users/spiderkeys/repos","events_url":"https://api.github.com/users/spiderkeys/events{/privacy}","received_events_url":"https://api.github.com/users/spiderkeys/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-02T19:40:17Z","updated_at":"2016-05-03T06:09:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/RPi-Distro/pi-gen/pulls/4","html_url":"https://github.com/RPi-Distro/pi-gen/pull/4","diff_url":"https://github.com/RPi-Distro/pi-gen/pull/4.diff","patch_url":"https://github.com/RPi-Distro/pi-gen/pull/4.patch"},"body":"Until there are official updates on creating the SD card and resolving a couple of issues, the following commits got me to a bootable Raspbian Lite image. This branch doesn't need to be merged, but I think creating a pull request will make the process visible for other people to work off until things are more cleanly tied up.\r\n\r\nCouple of notes:\r\n- Not sure why, but with my setup, the init_resize argument at the end of cmdline.txt sends my Pi into an endless reboot after it runs the resize script the first time. Looks like even without this cmdline option, the resize gets called by the normal init scripts:\r\n```\r\n[  OK  ] Started LSB: Resize the root filesystem to fill partition.\r\n```\r\n- Stage2 didn't end up with a populated fstab file, and boot failed as a result, so I uncommented the install step and created a slightly more elaborate default fstab\r\n- Might want to look into using systemd-nspawn instead of chroot for host systems that are running systemd, to avoid potential issues with using systemd commands inside chroot's. I put a placeholder function, but haven't tested it since my current desktop doesn't use systemd\r\n- I got a lot of your typical perl-related locale issues, so I configured the desired locale settings before installing the locales package to fix that.\r\n\r\nOne issue of note that I think should probably be addressed that I haven't sorted out yet is graceful failure. If you have a script that is set with bash -e and you experience a failure in on_chroot(), a lot of stuff gets left mounted and not cleaned up, which ends up breaking much of my userspace for some reason (can't spawn a new terminal, tab completions fail, tty's break, xserver will freeze if I switch between ttys, etc) and I end up having to restart my computer. Not sure what needs to be done here.\r\n\r\nLooking forward to updates, hopefully some of this can be of use.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/RPi-Distro/pi-gen/issues/comments/216446526","html_url":"https://github.com/RPi-Distro/pi-gen/pull/4#issuecomment-216446526","issue_url":"https://api.github.com/repos/RPi-Distro/pi-gen/issues/4","id":216446526,"user":{"login":"XECDesign","id":1716509,"avatar_url":"https://avatars.githubusercontent.com/u/1716509?v=3","gravatar_id":"","url":"https://api.github.com/users/XECDesign","html_url":"https://github.com/XECDesign","followers_url":"https://api.github.com/users/XECDesign/followers","following_url":"https://api.github.com/users/XECDesign/following{/other_user}","gists_url":"https://api.github.com/users/XECDesign/gists{/gist_id}","starred_url":"https://api.github.com/users/XECDesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XECDesign/subscriptions","organizations_url":"https://api.github.com/users/XECDesign/orgs","repos_url":"https://api.github.com/users/XECDesign/repos","events_url":"https://api.github.com/users/XECDesign/events{/privacy}","received_events_url":"https://api.github.com/users/XECDesign/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T06:09:33Z","updated_at":"2016-05-03T06:09:33Z","body":"Thanks, looks like there's a lot of good stuff here."}}