For completeness, here is the environment as reported at the prompt before I manually have to invoke the normal mode:
grub> ls (hd0) (hd0,gpt9) (hd0,gpt2) (hd0,gpt1) grub> lsmod Name Ref Count Dependencies minicmd 1 ls 1 normal,extmod normal 3 gettext,boot,extcmd,bufio,crypto,terminal,net gettext 4 extcmd 6 crypto 4 terminal 4 net 4 boot,datetime,bufio,priorit_queue boot 9 datetime 5 bufio 9 priority_queue 5 part_gpt 1 zfs 1 gzip gzio 2 grub> set ?=0 color_highlight=black/light-gray color_normal=light-gray/black feature_200_final=y feature_all_video_module=y feature_chainloader_bpb=y feature_default_font_path=y feature_menuentry_id=y feature_menuentry_options=y feature_nativedisk_cmd=y feature_ntldr=y feature_platform_search_hint=y feature_timeout_style=y fw_path=(hd0,gpt2)//EFI/centos grub_cpu=x86_64 lang= locale_dir= net_default_ip=(null) net_default_mac=(null) net_default_server= pager= prefix=(hd0,gpt1)/ROOT@/boot/grub2 pxe_default_server= root=hd0,gpt1 secondary_locale_dir grub> At this point punching in "normal" fires up the boot menu and boots the machine correctly, but I cannot understand why it doesn't proceed with "normal" without manual intervention by default. gpt2 is the EFI partition, gpt9 is a reserved partition with nothing on it, gpt1 is a ZFS root pool (but all grub requirements are on the EFI FAT partition gpt2). On Fri, Jul 7, 2017 at 11:13 AM, Gordan Bobic <[email protected]> wrote: > I did a bit more experimenting and I reinstalled the distro from scratch > and grub still boots into rescue mode every time, and all that is required > to make it boot into normal mode is typing "normal" without changing any > variables. > Could this be some weird timeout issue? Is there a way to make grub print > out verbose debug info during stage 1 boot? What could be causing it to not > automatically go into normal mode when there is obviously no configuration > issue preventing it? > Is there a way to script what it does at stage 1 to make it retry "normal" > a few times? > > On Sat, Jul 1, 2017 at 11:20 PM, Gordan Bobic <[email protected]> > wrote: > >> My impression is that the key difference is that you install grub2-efi >> package instead of grub2 package. >> But if I am missing a procedure, please, do elaborate. >> >> On Sat, Jul 1, 2017 at 11:03 PM, Satish Patel <[email protected]> >> wrote: >> >>> I believe UEFI has different method to re-install grub. >>> >>> Sent from my iPhone >>> >>> > On Jul 1, 2017, at 5:30 PM, Gordan Bobic <[email protected]> >>> wrote: >>> > >>> > I have a really weird issue that I am struggling to figure out. >>> > >>> > Grub always boots to rescue mode prompt: >>> > >>> > grub> >>> > >>> > But there is no obvious configuration problem, all I have to do to >>> make it >>> > boot properly is: >>> > >>> > grub> normal >>> > >>> > and it boots straight up to the boot menu and everything proceeds >>> without >>> > any intervention as expected. So root / prefix are obviously already >>> > correct. >>> > >>> > I re-did grub2-install (CentOS 7) and it makes no difference. It's a >>> UEFI >>> > system. >>> > >>> > What else can I try? Is there a way to explicitly script "normal" into >>> what >>> > it tries to execute by default? >>> > >>> > Many thanks. >>> > >>> > Gordan >>> > _______________________________________________ >>> > Help-grub mailing list >>> > [email protected] >>> > https://lists.gnu.org/mailman/listinfo/help-grub >>> >> >> > _______________________________________________ Help-grub mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-grub
