From b55b1023f8f1ad3121928eb9d0ee9902f5474752 Mon Sep 17 00:00:00 2001
From: Hongxu Jia <hongxu.jia@windriver.com>
Date: Mon, 8 May 2017 16:33:15 +0800
Subject: [PATCH] tweak btrfs packages

In oe-cre/yocto, we name btrfs package with btrfs-tools,
rather than btrfs-progs.

Upstream-Status: Inappropriate [oe specific]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 blivet/devices/btrfs.py | 2 +-
 blivet/formats/fs.py    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/blivet/devices/btrfs.py b/blivet/devices/btrfs.py
index c446e7e..37c183e 100644
--- a/blivet/devices/btrfs.py
+++ b/blivet/devices/btrfs.py
@@ -58,7 +58,7 @@ class BTRFSDevice(StorageDevice):
 
     """ Base class for BTRFS volume and sub-volume devices. """
     _type = "btrfs"
-    _packages = ["btrfs-progs"]
+    _packages = ["btrfs-tools"]
     _external_dependencies = [availability.BLOCKDEV_BTRFS_PLUGIN]
 
     def __init__(self, *args, **kwargs):
diff --git a/blivet/formats/fs.py b/blivet/formats/fs.py
index 1e102b6..f16941e 100644
--- a/blivet/formats/fs.py
+++ b/blivet/formats/fs.py
@@ -1050,7 +1050,7 @@ class BTRFS(FS):
     _formattable = True
     _linux_native = True
     _supported = True
-    _packages = ["btrfs-progs"]
+    _packages = ["btrfs-tools"]
     _min_size = Size("256 MiB")
     _max_size = Size("16 EiB")
     _mkfs_class = fsmkfs.BTRFSMkfs
