docs: def prepare_image(tarpath, outfolder, **kwargs):
      """Unpack the OS image stored at tarpath to outfolder.
  
      Prepare the unpacked image for use as a VR base image.
  
      """
      outfolder = path.Path(outfolder)
      untar(tarpath, outfolder, **kwargs)
  
      # Some OSes have started making /etc/resolv.conf into a symlink to
      # /run/resolv.conf.  That prevents us from bind-mounting to that
      # location.  So delete that symlink, if it exists.
      resolv_path = outfolder / 'etc' / 'resolv.conf'
      if resolv_path.islink():
          resolv_path.remove().write_text('', encoding='ascii')