From 39b6a511e0fa72992e0ef104c484886f36aa35dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BC=D1=98=D0=B0=D0=BD=20=D0=93=D0=B5=D0=BE?= =?UTF-8?q?=D1=80=D0=B3=D0=B8=D0=B5=D0=B2=D1=81=D0=BA=D0=B8?= Date: Tue, 4 Jul 2017 09:40:59 +0200 Subject: [PATCH] fix add_esp() in the gpt-auto-generator.c (#6251) b9088048b15cd21242b2308498fa865f864bfe45 seems to have broke it fstab_is_mount_point() returns `true` (1) if the mount point exists and `false` (0) if it doesn't exist. the change in b9088048 considered that if fstab_is_mount_point() returns 0 the mount point exists. --- src/gpt-auto-generator/gpt-auto-generator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpt-auto-generator/gpt-auto-generator.c b/src/gpt-auto-generator/gpt-auto-generator.c index c5319169b3..a6b09dcbf1 100644 --- a/src/gpt-auto-generator/gpt-auto-generator.c +++ b/src/gpt-auto-generator/gpt-auto-generator.c @@ -447,7 +447,7 @@ static int add_esp(DissectedPartition *p) { r = fstab_is_mount_point(esp); if (r < 0) return log_error_errno(r, "Failed to parse fstab: %m"); - if (r == 0) { + if (r > 0) { log_debug("%s specified in fstab, ignoring.", esp); return 0; }