From dd5c0d1629c176f7e35818f8f7a070499f06372e Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Fri, 19 Apr 2019 16:47:53 +0200 Subject: [PATCH] [bootloader] Log when the bootloader-module does nothing --- src/modules/bootloader/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/bootloader/main.py b/src/modules/bootloader/main.py index 56eecdb3b..4a0bef326 100644 --- a/src/modules/bootloader/main.py +++ b/src/modules/bootloader/main.py @@ -435,8 +435,8 @@ def run(): fw_type = libcalamares.globalstorage.value("firmwareType") - if (libcalamares.globalstorage.value("bootLoader") is None - and fw_type != "efi"): + if (libcalamares.globalstorage.value("bootLoader") is None and fw_type != "efi"): + libcalamares.utils.warning( "Non-EFI system, and no bootloader is set." ) return None partitions = libcalamares.globalstorage.value("partitions") @@ -444,6 +444,7 @@ def run(): efi_system_partition = libcalamares.globalstorage.value("efiSystemPartition") esp_found = [ p for p in partitions if p["mountPoint"] == efi_system_partition ] if not esp_found: + libcalamares.utils.warning( "EFI system, but nothing mounted on {!s}".format(efi_system_partition) ) return None prepare_bootloader(fw_type)