Automate install across chroot step

Also fix a bunch of bugs