disk-mapper: set LUKS2 token to allow reusing unintialized state disks (#2083)

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2023-07-18 16:20:03 +02:00 committed by GitHub
parent dc373971b2
commit 6a40c73ff7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 161 additions and 31 deletions

View file

@ -413,6 +413,10 @@ func (s *stubMapper) UnmapDisk(string) error {
return s.unmapDiskErr
}
func (s *stubMapper) SetDiskToInitialized() error {
return nil
}
type stubMounter struct {
mountCalled bool
mountErr error