[master 2/6] Make default subvolspec of BTRFS format MAIN_VOLUME_ID.

mulkieran installerbot-noreply at redhat.com
Wed May 6 15:03:52 UTC 2015


From: mulhern <amulhern at redhat.com>

Signed-off-by: mulhern <amulhern at redhat.com>
---
 blivet/formats/fs.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/blivet/formats/fs.py b/blivet/formats/fs.py
index dd282eb..f9ec7ac 100644
--- a/blivet/formats/fs.py
+++ b/blivet/formats/fs.py
@@ -40,6 +40,7 @@
 from ..i18n import _, N_
 from .. import udev
 from ..mounts import mountsCache
+from ..devicelibs import btrfs
 
 import logging
 log = logging.getLogger("blivet")
@@ -1157,7 +1158,7 @@ class BTRFS(FS):
     def __init__(self, **kwargs):
         super(BTRFS, self).__init__(**kwargs)
         self.volUUID = kwargs.pop("volUUID", None)
-        self.subvolspec = kwargs.pop("subvolspec", None)
+        self.subvolspec = kwargs.pop("subvolspec", btrfs.MAIN_VOLUME_ID)
 
     def create(self, **kwargs):
         # filesystem creation is done in blockdev.btrfs.create_volume


-- 
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/28dc29b95d63a1e55ebb5e6765429c0e426fc442


More information about the anaconda-patches mailing list