Record the version in the chroot and provide a command to query it.