Arguably this could be moved to using the distrib/miniroot infrastructure instead. XXX: This could benefit from being crunchgen-ed with libhack; currently it just uses a lot of stuff out of ${DESTDIR}