Skip to content

Commit

Permalink
disk: move ENC_IDENTIFIER (#3034)
Browse files Browse the repository at this point in the history
  • Loading branch information
codefiles authored Dec 21, 2024
1 parent 9b5fd6b commit c978c84
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 5 additions & 2 deletions archinstall/lib/disk/device_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
_: Callable[[str], DeferredTranslation]


ENC_IDENTIFIER = 'ainst'


class DiskLayoutType(Enum):
Default = 'default_layout'
Manual = 'manual_partitioning'
Expand Down Expand Up @@ -919,7 +922,7 @@ def is_create_or_modify(self) -> bool:
@property
def mapper_name(self) -> str | None:
if self.dev_path:
return f'{storage.get("ENC_IDENTIFIER", "ai")}{self.dev_path.name}'
return f'{ENC_IDENTIFIER}{self.dev_path.name}'
return None

def set_flag(self, flag: PartitionFlag) -> None:
Expand Down Expand Up @@ -1076,7 +1079,7 @@ def obj_id(self) -> str:
@property
def mapper_name(self) -> str | None:
if self.dev_path:
return f'{storage.get("ENC_IDENTIFIER", "ai")}{self.safe_dev_path.name}'
return f'{ENC_IDENTIFIER}{self.safe_dev_path.name}'
return None

@property
Expand Down
1 change: 0 additions & 1 deletion archinstall/lib/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@
'LOG_PATH': Path('/var/log/archinstall'),
'LOG_FILE': Path('install.log'),
'MOUNT_POINT': Path('/mnt/archinstall'),
'ENC_IDENTIFIER': 'ainst',
}

0 comments on commit c978c84

Please sign in to comment.