<p dir="ltr">Hello Neil, apologies for the long delay on this.  I've attached a patch that solves this bug and two other bugs:</p>
<p dir="ltr">1. BuildBot Fixes: Attempts to build with a TTY device, and falls back to headless mode if TTY device is unavailable.  This change allows BuildBot builds to complete.</p>
<p dir="ltr">2. Add customize-chroot support: Adds new "--customize-in-chroot" option to run the customize script in the chroot.  This option feels necessary to safely support automated builds, because the building user needs to run vmdebootstrap as root.  If the customize script is run in the chroot, we make it harder for users to shoot themselves in the foot and break their host/building system.</p>
<p dir="ltr">3. Fail Faster: Treat IO errors as build failures because they imply that other parts of the build (parts that will probably take much longer) will also fail.  I've ended up wasting hours this way, because we got to the customize script, which took hours to fail.</p>
<p dir="ltr">My branch (based off of Lars's 1ce8413f revision) is available at:</p>
<p dir="ltr"><a href="https://github.com/NickDaly/vmdebootstrap">https://github.com/NickDaly/vmdebootstrap</a></p>
<p dir="ltr">Thanks for your time,<br>
Nick</p>