Skip to content

Commit

Permalink
Make default subvolspec of BTRFS format MAIN_VOLUME_ID.
Browse files Browse the repository at this point in the history
Signed-off-by: mulhern <amulhern@redhat.com>
  • Loading branch information
mulkieran committed May 6, 2015
1 parent 8f4bdee commit 28dc29b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blivet/formats/fs.py
Expand Up @@ -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")
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 28dc29b

Please sign in to comment.