Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-12-10 14:37:23 +0000
committerGitHub <noreply@github.com>2021-12-10 14:37:23 +0000
commitc0b83e7f2febcadff6df6a7d0fbd04984cba5314 (patch)
tree136c87e9905a60587d08e1856a190c4a2c013b58
parentdbb3c0a30e68129e2c71179ad5e957b8ec254cd8 (diff)
parent9e840bd9ef37234f0649381a09e498d359155229 (diff)
Merge pull request #792 from MichaelMai2000/patch-1
fix logic: could not detect root **or** boot
-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 4b26d979..3b2e3bd1 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -569,7 +569,7 @@ class Installer:
root_partition_fs = partition.filesystem
root_fs_type = get_mount_fs_type(root_partition_fs)
- if boot_partition is None and root_partition is None:
+ if boot_partition is None or root_partition is None:
raise ValueError(f"Could not detect root (/) or boot (/boot) in {self.target} based on: {self.partitions}")
self.log(f'Adding bootloader {bootloader} to {boot_partition if boot_partition else root_partition}', level=logging.INFO)