]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
gpt-auto-generator: improve log message 35237/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 19 Nov 2024 16:06:48 +0000 (17:06 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 27 Mar 2025 11:04:47 +0000 (12:04 +0100)
We said "exiting", but then the program continues to do other operations
and log additional messages.

src/gpt-auto-generator/gpt-auto-generator.c

index 8a499487804a4e4f406bd8f2b2c9ecf1b2e6b291..0addb5a82c985b5b5db5c9560725b8eebf2fd731 100644 (file)
@@ -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)