summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-07-19 18:40:03 +0200
committerLennart Poettering <lennart@poettering.net>2016-07-21 11:10:35 +0200
commitc18532e031d2923e095a189999c289be13aea7b8 (patch)
tree789e335be48828975db37091478332fc20bcb6dd
parent25579a43efcf5fdced4041427164e0852c035ab0 (diff)
bootctl: fix error message check
-rw-r--r--src/boot/bootctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c
index 6e0c961527..f337eb6675 100644
--- a/src/boot/bootctl.c
+++ b/src/boot/bootctl.c
@@ -1049,7 +1049,7 @@ static int bootctl_main(int argc, char*argv[]) {
if (loader_path)
efi_tilt_backslashes(loader_path);
r = efi_loader_get_device_part_uuid(&loader_part_uuid);
- if (r < 0 && r == -ENOENT)
+ if (r < 0 && r != -ENOENT)
log_warning_errno(r, "Failed to read EFI variable LoaderDevicePartUUID: %m");
printf("System:\n");