From: Jan Janssen Date: Wed, 24 Aug 2022 05:53:23 +0000 (+0200) Subject: shutdown: Fix last try detection X-Git-Tag: v252-rc1~348 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=13d9616c567ea3155716a49d5035169279a40de4;p=thirdparty%2Fsystemd.git shutdown: Fix last try detection This was missed in 5125b67742567de79c12e31f434a11d787b4f6b1. --- diff --git a/src/shutdown/shutdown.c b/src/shutdown/shutdown.c index af9697526d3..dcee0f90061 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