fix pam tally2 check when read-only disk boot without ro-mode-init or grub-live

This commit is contained in:
Patrick Schleizer 2020-01-21 10:01:17 -05:00
parent 627b95e0b3
commit 18041efa2f
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -73,7 +73,8 @@ fi
# fi
# fi
pam_tally2_output="$(pam_tally2 --user "$PAM_USER")"
## Using || true to not break read-only disk boot without ro-mode-init or grub-live.
pam_tally2_output="$(pam_tally2 --user "$PAM_USER")" || true
if [ "$pam_tally2_output" = "" ]; then
true "$0: no failed login"