shutdown: Fix last try detection

This was missed in 5125b67742.
This commit is contained in:
Jan Janssen
2022-08-25 11:38:33 +02:00
committed by Lennart Poettering
parent 2220ef8972
commit 13d9616c56
+1 -1
View 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