KickstartDeprecationWarning: The pwpolicy command has been deprecated.
Issue
- Warning message
KickstartDeprecationWarning: The pwpolicy command has been deprecated.is logged using Kickstart file from RHEL8. -
Below log message appears in
/var/log/anaconda/journal.log:anaconda: misc: /usr/lib64/python3.9/site-packages/pyanaconda/pwpolicy.py:237: KickstartDeprecationWarning: The pwpolicy command has been deprecated. It may be removed from future releases, which will result in a fatal error when it is encountered. Please modify your kickstart file to remove this command. -
Kickstart file contains pwpolicy option:
%anaconda pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty %end
Environment
- Red Hat Enterprise Linux 9
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.