On 10/09/2014 03:36 PM, mulhern wrote:
Resolves: fed#1151129 Related: rhbz#1076383
Signed-off-by: mulhern amulhern@redhat.com
blivet/devicelibs/btrfs.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/blivet/devicelibs/btrfs.py b/blivet/devicelibs/btrfs.py index 94aefaa..b23306e 100644 --- a/blivet/devicelibs/btrfs.py +++ b/blivet/devicelibs/btrfs.py @@ -152,10 +152,16 @@ def get_default_subvolume(mountpoint): return default
def set_default_subvolume(mountpoint, subvol_id):
- """ Sets the subvolume of mountpoint which is mounted as default.
:param str mountpoint: path of mountpoint
:param subvol_id: the subvolume id to set as the default
:type subvol_id: str or int
- """ if not os.path.ismount(mountpoint): raise ValueError("volume not mounted")
- args = ["subvol", "set-default", subvol_id, mountpoint]
args = ["subvol", "set-default", str(subvol_id), mountpoint] return btrfs(args)
def create_snapshot(source, dest, ro=False):
I tested an updates image containing this fix and it works fine.
[]'s Gustavo