app: fix LVM default storage pool
This commit is contained in:
parent
38bc751b97
commit
71a1be30e7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user