mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-07-31 18:18:43 -04: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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue