From 13d9616c567ea3155716a49d5035169279a40de4 Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Wed, 24 Aug 2022 07:53:23 +0200 Subject: [PATCH] shutdown: Fix last try detection This was missed in 5125b67742567de79c12e31f434a11d787b4f6b1. --- src/shutdown/shutdown.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shutdown/shutdown.c b/src/shutdown/shutdown.c index af9697526d..dcee0f9006 100644 --- a/src/shutdown/shutdown.c +++ b/src/shutdown/shutdown.c @@ -497,7 +497,7 @@ int main(int argc, char *argv[]) { break; } - if (!changed && last_try && !can_initrd) { + if (!changed && !last_try && !can_initrd) { /* There are things we cannot get rid of. Loop one more time in which we will log * with higher priority to inform the user. Note that we don't need to do this if * there is an initrd to switch to, because that one is likely to get rid of the -- 2.25.1