build a rootfs tarball by getting required packages