Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions archinstall/lib/luks.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class Luks2:
mapper_name: str | None = None
password: Password | None = None
key_file: Path | None = None
auto_unmount: bool = False

@property
def mapper_dev(self) -> Path | None:
Expand All @@ -44,13 +43,6 @@ def __post_init__(self) -> None:
if self.luks_dev_path is None:
raise ValueError('Partition must have a path set')

def __enter__(self) -> None:
self.unlock(self.key_file)

def __exit__(self, *args: str, **kwargs: str) -> None:
if self.auto_unmount:
self.lock()

def _password_bytes(self) -> bytes:
if not self.password:
raise ValueError('Password for luks2 device was not specified')
Expand Down