Article 5S8HS Grub Not Working on Linux 8

Grub Not Working on Linux 8

by
LinuxRSA
from LinuxQuestions.org on (#5S8HS)
Hi Guys

Trying to setup a Grub password on Oracle Linux 8, after i run the below commands and reboot the grub logins do not work.

Code:[root@olinux8 ~]# cat /etc/grub.d/10_linux | grep unrestricted
CLASS="--class gnu-linux --class gnu --class os --unrestricted"
[root@olinux8 ~]#
[root@olinux8 ~]# cat /etc/grub.d/10_linux | grep CLASS
CLASS="--class gnu-linux --class gnu --class os --unrestricted"
CLASS="--class $(eval $(grep '^ID_LIKE=\|^ID=' /etc/os-release) ; [ -n "${ID_LIKE}" ] && echo ${ID_LIKE} || echo ${ID}) ${CLASS}"
CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}"
echo "menuentry '$(echo "$title" | grub_quote)' ${CLASS} \$menuentry_id_option 'gnulinux-$version-$type-$boot_device_id' {" | sed "s/^/$submenu_indentation/"
echo "menuentry '$(echo "$os" | grub_quote)' ${CLASS} \$menuentry_id_option 'gnulinux-simple-$boot_device_id' {" | sed "s/^/$submenu_indentation/"
[root@olinux8 ~]#I set my Grub password

Code:[root@olinux8 ~]# cd /etc/grub.d/
[root@olinux8 grub.d]# ls
00_header 00_tuned 01_users 08_fallback_counting 10_linux 10_reset_boot_success 12_menu_auto_hide 20_linux_xen 20_ppc_terminfo 30_os-prober 30_uefi-firmware 40_custom 41_custom README
[root@olinux8 grub.d]#
[root@olinux8 grub.d]#
[root@olinux8 grub.d]# grub2-setpassword
Enter password:
Confirm password:
[root@olinux8 grub.d]#This creates my Grub password and entry into user.cfg in /boot/grub2/ directory

Code:[root@olinux8 grub.d]# cd /boot/grub2/
[root@olinux8 grub2]# ls
device.map fonts grub.cfg grubenv i386-pc user.cfg
[root@olinux8 grub2]#
[root@olinux8 grub2]# cat user.cfg
GRUB2_PASSWORD=grub.pbkdf2.sha512.10000.02ADF0AF6FFF6A51F4CF290417E8B2321FB422BCBFFA148D14AF89A13BDF8A52201AD241A0AAF197616058163E885D2EF9C32924750B82EA87983BC570FD5C61.C1D3F6015F0852AA327B6A6CD436ACF81832D0F3E541C40BAC91939923ADEB1EE916CDCF00662AA097880DBF431AAD3C662F88E6C1C60ACFFE4E7BE4D5004CFE
[root@olinux8 grub2]#
[root@olinux8 grub2]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
done
[root@olinux8 grub2]#Below is information about the Grub env & settings.

Code:[root@olinux8 ~]# cat /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=vg01/root rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true
[root@olinux8 ~]#
[root@olinux8 ~]#
[root@olinux8 ~]# cat /boot/grub2/grubenv
# GRUB Environment Block
saved_entry=c2def470aecf435aa8ffd19549428b38-5.4.17-2136.300.7.el8uek.x86_64
kernelopts=root=/dev/mapper/vg01-root ro crashkernel=auto rd.lvm.lv=vg01/root rhgb quiet
boot_success=0
boot_indeterminate=0
############################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################[root@olinux8 ~]#
[root@olinux8 ~]#
[root@olinux8 ~]#
[root@olinux8 ~]# grub2-editenv list
saved_entry=c2def470aecf435aa8ffd19549428b38-5.4.17-2136.300.7.el8uek.x86_64
kernelopts=root=/dev/mapper/vg01-root ro crashkernel=auto rd.lvm.lv=vg01/root rhgb quiet
boot_success=1
boot_indeterminate=0
[root@olinux8 ~]#What step and setting am i missing ?

Thankslatest?d=yIl2AUoC8zA latest?i=Mdvyz3txWKc:witwVcyiEUI:F7zBnMy latest?i=Mdvyz3txWKc:witwVcyiEUI:V_sGLiP latest?d=qj6IDK7rITs latest?i=Mdvyz3txWKc:witwVcyiEUI:gIN9vFw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments