]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shutdown: Fix last try detection
authorJan Janssen <medhefgo@web.de>
Wed, 24 Aug 2022 05:53:23 +0000 (07:53 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 25 Aug 2022 09:38:33 +0000 (11:38 +0200)
This was missed in 5125b67742567de79c12e31f434a11d787b4f6b1.

src/shutdown/shutdown.c

index af9697526d38eeb725b809bebce2309dac233162..dcee0f900616d2fb98bdc99258528c2a198ebab7 100644 (file)
@@ -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