Remove unnecessary sudo. Assuming you build as root.
`rm chroot/.git/shallow` trick does not work anymore from a fresh
shallow clone. So we cp across .git directory instead.