disks: Allow reusing tmpdir for testing, generate sha256sums