mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-01-07 14:01:06 +07:00
fix pam tally2 check when read-only disk boot without ro-mode-init or grub-live
This commit is contained in:
parent
627b95e0b3
commit
18041efa2f
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user