gpt-auto-generator: improve log message

We said "exiting", but then the program continues to do other operations
and log additional messages.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2024-11-19 17:06:48 +01:00
parent 6bb9caa256
commit bcc1eebd8f

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