Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Llácer <wllacer@gmail.com>2022-02-23 08:41:03 +0100
committerGitHub <noreply@github.com>2022-02-23 08:41:03 +0100
commit6a0e3d9e4b31ce443b6a9ff22cc513ef53ab0437 (patch)
tree437e80d53520459b41b568827d59ddc72fbdae3b
parent86a21711b54ac69b11ce1bd5af130383c6a6a6bc (diff)
Issue992 (#1004)
* Solves issue 992 * flake8 complains Co-authored-by: Anton Hvornum <anton@hvornum.se>
-rw-r--r--archinstall/lib/installer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index 257dda22..6f9a1071 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -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