From: David Lehman <dlehman(a)redhat.com>
---
blivet/formats/fs.py | 8 ++++++++
blivet/formats/lvmpv.py | 8 ++++++++
blivet/formats/mdraid.py | 8 ++++++++
3 files changed, 24 insertions(+)
diff --git a/blivet/formats/fs.py b/blivet/formats/fs.py
index cb105c4..7e0d689 100644
--- a/blivet/formats/fs.py
+++ b/blivet/formats/fs.py
@@ -986,6 +986,14 @@ def _pre_setup(self, **kwargs):
# Don't try to mount it if there's no mountpoint.
return bool(self.mountpoint or kwargs.get("mountpoint"))
+ @property
+ def container_uuid(self):
+ return self.vol_uuid
+
+ @container_uuid.setter
+ def container_uuid(self, uuid):
+ self.vol_uuid = uuid
+
register_device_format(BTRFS)
diff --git a/blivet/formats/lvmpv.py b/blivet/formats/lvmpv.py
index bc82612..5f1180d 100644
--- a/blivet/formats/lvmpv.py
+++ b/blivet/formats/lvmpv.py
@@ -159,4 +159,12 @@ def free(self):
def free(self, value):
self._free = value
+ @property
+ def container_uuid(self):
+ return self.vg_uuid
+
+ @container_uuid.setter
+ def container_uuid(self, uuid):
+ self.vg_uuid = uuid
+
register_device_format(LVMPhysicalVolume)
diff --git a/blivet/formats/mdraid.py b/blivet/formats/mdraid.py
index 9212c15..ee7e887 100644
--- a/blivet/formats/mdraid.py
+++ b/blivet/formats/mdraid.py
@@ -104,6 +104,14 @@ def status(self):
def hidden(self):
return super(MDRaidMember, self).hidden or self.biosraid
+ @property
+ def container_uuid(self):
+ return self.md_uuid
+
+ @container_uuid.setter
+ def container_uuid(self, uuid):
+ self.md_uuid = uuid
+
# nodmraid -> Wether to use BIOS RAID or not
# Note the anaconda cmdline has not been parsed yet when we're first imported,
# so we can not use flags.dmraid here
--
To view this commit on github, visit
https://github.com/rhinstaller/blivet/commit/057a2892779e903b0e6e36613dbe...