Skip to content
Merged
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
5 changes: 5 additions & 0 deletions archinstall/lib/models/device_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from enum import Enum
from pathlib import Path
from typing import NotRequired, TypedDict, override
from uuid import UUID

import parted
from parted import Disk, Geometry, Partition
Expand Down Expand Up @@ -871,6 +872,8 @@ class PartitionModification:
partuuid: str | None = None
uuid: str | None = None

_obj_id: UUID | str = field(init=False)

def __post_init__(self) -> None:
# needed to use the object as a dictionary key due to hash func
if not hasattr(self, '_obj_id'):
Expand Down Expand Up @@ -1134,6 +1137,8 @@ class LvmVolume:
# mapper device path /dev/<vg>/<vol>
dev_path: Path | None = None

_obj_id: uuid.UUID | str = field(init=False)

def __post_init__(self) -> None:
# needed to use the object as a dictionary key due to hash func
if not hasattr(self, '_obj_id'):
Expand Down