Merge pull request #792 from MichaelMai2000/patch-1

fix logic: could not detect root **or** boot
This commit is contained in:
Anton Hvornum 2021-12-10 14:37:23 +00:00 committed by GitHub
commit c0b83e7f2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)