[master 2/2] Make default subvolspec of BTRFS format MAIN_VOLUME_ID.
mulkieran
installerbot-noreply at redhat.com
Tue May 5 16:34:17 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/c0259410cf46dab75cb96e78a0c7bc241ec427db
More information about the anaconda-patches
mailing list