How to generate GRUB2 pbkdf2 hashes in RHEL 6
Environment
- Red Hat Enterprise Linux 6
Issue
- I use a RHEL 6 host to generate kickstart files. I'm trying to add a grub2 password, for RHEL7 builds, during kickstart. How do I get this hash in RHEl6?
Resolution
-
There is no supported way to generate a GRUB2-compatible hash in RHEL 6
-
However, there is a 3rd-party unsupported option available on GitHub:
burg2-mkpasswd-pbkdf2 - Non-interactively generate GRUB2-compatible PBKDF2 hashes from the cmdline with python
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
