From: Zbigniew Jędrzejewski-Szmek Date: Tue, 19 Nov 2024 16:06:48 +0000 (+0100) Subject: gpt-auto-generator: improve log message X-Git-Tag: v258-rc1~987^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bcc1eebd8fbb93dca9daa44ef5da17a39fcd4235;p=thirdparty%2Fsystemd.git gpt-auto-generator: improve log message We said "exiting", but then the program continues to do other operations and log additional messages. --- 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)