Remove duplicate LUKS unlock check (#3510)
This commit is contained in:
parent
2623039fff
commit
c8f1f78679
|
|
@ -674,9 +674,6 @@ class DeviceHandler:
|
|||
if not luks_handler.is_unlocked():
|
||||
luks_handler.unlock()
|
||||
|
||||
if not luks_handler.is_unlocked():
|
||||
raise DiskError(f'Failed to unlock luks2 device: {dev_path}')
|
||||
|
||||
return luks_handler
|
||||
|
||||
def umount_all_existing(self, device_path: Path) -> None:
|
||||
|
|
|
|||
Loading…
Reference in New Issue