Extract the final dpkg status and file list
Export the list of packages installed in the final artifact just before removing the dpkg
database and dump the list of files after dropping all the unneded ones.
This will allow to quickly check the artifacts contents without unpacking and processing them.
I've also included a cleanup to drop the old .chroot
extension that was cargo culted from the Old Times™.