Skip to content

Commit

Permalink
add "path" attributes to fs model objects that curtin now provides a …
Browse files Browse the repository at this point in the history
…path for
  • Loading branch information
mwhudson committed Oct 5, 2022
1 parent 5010543 commit 8e65899
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions subiquity/models/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,7 @@ class Partition(_Formattable):
offset = attr.ib(default=None)
resize = attr.ib(default=None)
partition_type = attr.ib(default=None)
path = attr.ib(default=None)

def __post_init__(self):
if self.number is not None:
Expand Down Expand Up @@ -805,6 +806,7 @@ def serialize_devices(self):
wipe = attr.ib(default=None)
ptable = attributes.ptable()
metadata = attr.ib(default=None)
path = attr.ib(default=None)
container = attributes.ref(backlink="_subvolumes", default=None) # Raid
_subvolumes = attributes.backlink(default=attr.Factory(list))

Expand Down Expand Up @@ -891,6 +893,7 @@ class LVM_LogicalVolume(_Formattable):
wipe = attr.ib(default=None)

preserve = attr.ib(default=False)
path = attr.ib(default=None)

def serialize_size(self):
if self.size is None:
Expand Down Expand Up @@ -921,6 +924,7 @@ class DM_Crypt:
volume = attributes.ref(backlink="_constructed_device") # _Formattable
key = attr.ib(metadata={'redact': True}, default=None)
keyfile = attr.ib(default=None)
path = attr.ib(default=None)

def serialize_key(self):
if self.key and not self.keyfile:
Expand Down

0 comments on commit 8e65899

Please sign in to comment.