Yes, they are the same. I edit the file /etc/grub.d/01_users to create the grub.cfg file with grub2-mkconfig.
my 01_users look like this : #!/bin/sh -e cat << EOF set superusers="root" export superusers password root root EOF This works in BIOS mode but not in EFI mode. Le jeu. 4 juin 2020 à 16:25, Randy Goldenberg <[email protected]> a écrit : > On Wednesday June 03, 2020, paul kerdren wrote: > > >Hello, > > > >I know it's a really bad practice but I would like to understand the > >differences between BIOS and EFI mode in grub. > > > >When I put "password user insecure" in the /boot/grub2/grub.cfg file in > >BIOS mode, grub recognizes my password and allows me to edit the grub > >configuration. > > > >On the other hand, when I'm in EFI mode (/boot/efi/EFI/centos/grub.cfg), > >the password doesn't work and I have the punishment delay increasing. > >The password_pbkdf2 command works correctly. > > Are the contents of /boot/efi/EFI/centos/grub.cfg the same as > /boot/grub2/grub.cfg? >
