On Wed, 2013-05-01 at 16:58 -0400, Chris Lumens wrote:
Related: rhbz#892363
---
blivet/devicefactory.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/blivet/devicefactory.py b/blivet/devicefactory.py
index 88336d1..a16bb92 100644
--- a/blivet/devicefactory.py
+++ b/blivet/devicefactory.py
@@ -1306,3 +1306,10 @@ class BTRFSFactory(DeviceFactory):
kwargs["metaDataLevel"] = self.container_raid_level
kwargs["subvol"] = True
return self.storage.newBTRFS(*args, **kwargs)
+
+ def _set_name(self):
+ super(BTRFSFactory, self)._set_name()
+ if self.device_name is None:
+ return
+
+ self.device.format.options = "subvol=" + self.device.name
These
both look good to me.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic