Issue992 (#1004)
* Solves issue 992 * flake8 complains Co-authored-by: Anton Hvornum <anton@hvornum.se>
This commit is contained in:
parent
86a21711b5
commit
6a0e3d9e4b
|
|
@ -210,7 +210,7 @@ class Installer:
|
|||
"""
|
||||
if partition.get("mountpoint") is None:
|
||||
if (sub_list := partition.get("btrfs",{}).get('subvolumes',{})):
|
||||
for mountpoint in [sub_list[subvolume] if isinstance(sub_list[subvolume],str) else sub_list[subvolume].get("mountpoint") for subvolume in sub_list]:
|
||||
for mountpoint in [sub_list[subvolume] if isinstance(sub_list[subvolume],str) else sub_list[subvolume].get("mountpoint") for subvolume in sub_list if sub_list[subvolume]]:
|
||||
if mountpoint == '/':
|
||||
return True
|
||||
return False
|
||||
|
|
|
|||
Loading…
Reference in New Issue