-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
rhel-9.7.z
-
None
-
None
-
Moderate
-
rhel-bootloader
-
1
-
5
-
False
-
False
-
-
None
-
grub2 (bugs)
-
None
-
None
-
Unspecified
-
Unspecified
-
Unspecified
-
None
What were you trying to do that didn't work?
grub2-script-check does not check the syntax of grub commands. In the example provided, password_pbkdf2 is missing an argument:
# grep -B3 -A3 superusers /boot/grub2/grub.cfg if [ -f ${prefix}/user.cfg ]; then source ${prefix}/user.cfg if [ -n "${GRUB2_PASSWORD}" ]; then set superusers="test" export superusers password_pbkdf2 "test" fi fi
Causing grub2 to error during boot:
error: ../../grub-core/commands/password_pdkdf2.c:94:two arguments expected
grub2-script-check does not report any error, it considers the configuration file to be okay.
What is the impact of this issue to you?
Can't-boot issues even after checking the configuration file.
Please provide the package NVR for which the bug is seen:
grub2-tools-2.06-114.el9_7.x86_64
How reproducible is this bug?:
Always
Steps to reproduce
- Create a grub.cfg file with correct grub commands but missing arguments.
- Run the check with grub2-script-check