From 71a1be30e7084217f61886e89ff25025ade85510 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 30 Jul 2017 14:57:26 +0200 Subject: [PATCH] app: fix LVM default storage pool --- qubes/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qubes/app.py b/qubes/app.py index be3c104e..fd0eee58 100644 --- a/qubes/app.py +++ b/qubes/app.py @@ -587,7 +587,8 @@ def _default_pool(app): thin_volumes = subprocess.check_output( ['lvs', '--select', 'pool_lv=' + thin_pool, '-o', 'lv_kernel_major,lv_kernel_minor', '--noheadings']) - if any((str(root_major), str(root_minor)) == thin_vol.split() + thin_volumes = thin_volumes.decode() + if any([str(root_major), str(root_minor)] == thin_vol.split() for thin_vol in thin_volumes.splitlines()): return pool # not a thin volume? look for file pools