diff --git a/scale_build/bootstrap/cache.py b/scale_build/bootstrap/cache.py index 890b7f7..d3c5e43 100644 --- a/scale_build/bootstrap/cache.py +++ b/scale_build/bootstrap/cache.py @@ -56,7 +56,10 @@ class CacheMixin: if intact: self.restore_cache(self.chroot_basedir) - for reference_file, diff in compare_reference_files(cut_nonexistent_user_group_membership=True): + for reference_file, diff in compare_reference_files( + cut_nonexistent_user_group_membership=True, + default_homedir='/var/empty' + ): if diff: intact = False self.logger.debug( diff --git a/scale_build/update_image.py b/scale_build/update_image.py index 7e461b7..e10ce4b 100644 --- a/scale_build/update_image.py +++ b/scale_build/update_image.py @@ -64,7 +64,7 @@ def build_update_image_impl(): install_rootfs_packages() - for reference_file, diff in compare_reference_files(): + for reference_file, diff in compare_reference_files(default_homedir='/var/empty'): if diff: raise CallError( f'Reference file {reference_file!r} changed.\n'