From bcc1eebd8fbb93dca9daa44ef5da17a39fcd4235 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 19 Nov 2024 17:06:48 +0100 Subject: [PATCH] gpt-auto-generator: improve log message We said "exiting", but then the program continues to do other operations and log additional messages. --- src/gpt-auto-generator/gpt-auto-generator.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gpt-auto-generator/gpt-auto-generator.c b/src/gpt-auto-generator/gpt-auto-generator.c index 8a499487804..0addb5a82c9 100644 --- a/src/gpt-auto-generator/gpt-auto-generator.c +++ b/src/gpt-auto-generator/gpt-auto-generator.c @@ -690,8 +690,9 @@ static int add_root_mount(void) { r = efi_loader_get_device_part_uuid(/* ret_uuid= */ NULL); if (r == -ENOENT) { - log_notice("EFI loader partition unknown, exiting.\n" - "(The boot loader did not set EFI variable LoaderDevicePartUUID.)"); + log_notice("EFI loader partition unknown, not processing %s.\n" + "(The boot loader did not set EFI variable LoaderDevicePartUUID.)", + in_initrd() ? "/sysroot" : "/"); return 0; } if (r < 0) -- 2.47.3