Grub Menu not update after dnf upgrade --refresh kernel 6.8.10 not visible but installed

/proc, /sys, /dev, and /run are all bind mounted according to the commands I provided and he echoed.
for file in sys run proc dev ; do mount -o bind /$file /mnt/$file ; done done as root from the live system.
Also shown with his output of the mount command in post 46

It is really strange that efibootmgr is unable to function within the chroot environment.

@sreyaz01
Please run cat /sys/firmware/efi/efivars (inside the chroot environment)

One possibility I did not yet specifically ask about.
What is the output of df.
If /boot/efi seems full or /boot seems full then we may need to do something additional.

Df under chroot ?

yes –

here are the results :

root@localhost-live:/# mount
/dev/nvme0n1p6 on / type btrfs (rw,relatime,seclabel,compress=zstd:1,ssd,discard=async,space_cache=v2,subvolid=256,subvol=/root)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime,seclabel)
tmpfs on /run type tmpfs (rw,nosuid,nodev,seclabel,size=1597428k,nr_inodes=819200,mode=755,inode64)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,seclabel,size=4096k,nr_inodes=989057,mode=755,inode64)
/dev/nvme0n1p5 on /boot type ext4 (rw,relatime,seclabel)
/dev/nvme0n1p1 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=winnt,errors=remount-ro)
/dev/nvme0n1p6 on /home type btrfs (rw,relatime,seclabel,compress=zstd:1,ssd,discard=async,space_cache=v2,subvolid=257,subvol=/home)
root@localhost-live:/# cat /sys/firmware/efi/efivars
cat: /sys/firmware/efi/efivars: Is a directory
root@localhost-live:/# cat /sys/firmware/efi/efivars
cat: /sys/firmware/efi/efivars: Is a directory
root@localhost-live:/# df
Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/nvme0n1p6  87998464 41595288  45231400  48% /
tmpfs            1597428     9924   1587504   1% /run
devtmpfs            4096        0      4096   0% /dev
/dev/nvme0n1p5    996780   315920    612048  35% /boot
/dev/nvme0n1p1     98304    50887     47417  52% /boot/efi
/dev/nvme0n1p6  87998464 41595288  45231400  48% /home
root@localhost-live:/# 


Available space seems reasonable from df.
The quote seems to indicate that the efi vars are there so is efibootmgr still failing in the chroot environment?

Yep ig

root@localhost-live:/# efibootmgr
EFI variables are not supported on this system

Always this

At this point I would suggest that you run dnf distro-sync --refresh to ensure everything installed is 100% up to date.

Withing the chroot enviornment… ?

I think we should give a try to uninstall grub and reinstall it but i don’t know how to do that with live boot or grub rescue screen
So I am kinda stuck and

reinstalling complete fedora is not an option after installation setups for personal use is Pain. :frowning:

You stated that you are using the linpus entry to boot.
Please, once again run lsblk -f so we can see the details of the file systems – including UUIDs, etc.
The linpus entry from efibootmgr seems to have a totally different device ID than any other entry in that output.

And, yes
All commands are assumed to be within the chroot unless otherwise stated.

output :

root@localhost-live:/# lsblk -f
NAME FSTYPE FSVER LABEL                 UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
loop0
     squash 4.0                                                                             
loop1
│    ext4   1.0   Anaconda              2074eb84-624c-4790-83b6-8f3e4a82ae85                
├─live-rw
│    ext4   1.0   Anaconda              2074eb84-624c-4790-83b6-8f3e4a82ae85                
└─live-base
     ext4   1.0   Anaconda              2074eb84-624c-4790-83b6-8f3e4a82ae85                
loop2
│    DM_sna                                                                                 
└─live-rw
     ext4   1.0   Anaconda              2074eb84-624c-4790-83b6-8f3e4a82ae85                
sda                                                                                         
├─sda1
│    ntfs         Extra Space           D4E02AD8E02AC09A                                    
├─sda2
│    ntfs         HDD softwears         01D766AC506F79D0                                    
├─sda3
│    ntfs         Misc                  AA005ABE005A9165                                    
└─sda4
     ntfs         Study                 94083024083007AE                                    
sdb                                                                                         
└─sdb1
     vfat   FAT32 FEDORA-WS-L           1C09-08A1                                           
zram0
                                                                                            [SWAP]
nvme0n1
│                                                                                           
├─nvme0n1p1
│    vfat   FAT32                       5036-7DAD                              46.3M    52% /boot/efi
├─nvme0n1p2
│                                                                                           
├─nvme0n1p3
│    ntfs         Windows and SSD       E244370F4436E647                                    
├─nvme0n1p4
│    ntfs                               01D9B0FDC06FFF00                                    
├─nvme0n1p5
│    ext4   1.0                         f14039e7-da71-4796-8724-f2c1b0a8ea82  597.7M    32% /boot
└─nvme0n1p6
     btrfs        fedora_localhost-live 8317c641-2840-4a61-bfc2-905275a014fb   43.1G    47% /home
                                                                                            /
root@localhost-live:/# 

running dnf distro-sync --refresh

no commands I am suggesting have anything to do with removing and/or installing fedora new.

that i know i edited those before your dnf disto sync massage i thought that would be easy if this issue remain undetected

any ways here is a results of distro sync

root@localhost-live:/# dnf distro-sync --refresh
Copr repo for preload owned by elxreno                                        68  B/s | 1.5 kB     00:22    
Copr repo for PyCharm owned by phracek                                       109  B/s | 1.8 kB     00:17    
Fedora 40 - x86_64                                                           8.0 kB/s | 4.9 kB     00:00    
Fedora 40 openh264 (From Cisco) - x86_64                                     4.1 kB/s | 989  B     00:00    
Fedora 40 - x86_64 - Updates                                                 7.0 kB/s | 5.1 kB     00:00    
google-chrome                                                                6.0 kB/s | 1.3 kB     00:00    
google-chrome                                                                4.1 kB/s | 1.7 kB     00:00    
determining the fastest mirror (1 hosts).. done.===========================]  11 kB/s |  11 kB     00:00 ETA
RPM Fusion for Fedora 40 - Free                                              2.3 kB/s |  11 kB     00:04    
RPM Fusion for Fedora 40 - Free - Updates                                    3.1 kB/s | 9.4 kB     00:02    
RPM Fusion for Fedora 40 - Free - Updates                                    3.2 kB/s |  33 kB     00:10    
RPM Fusion for Fedora 40 - Nonfree                                           5.9 kB/s |  15 kB     00:02    
RPM Fusion for Fedora 40 - Nonfree - NVIDIA Driver                           5.2 kB/s |  15 kB     00:02    
RPM Fusion for Fedora 40 - Nonfree - Steam                                   8.5 kB/s |  14 kB     00:01    
RPM Fusion for Fedora 40 - Nonfree - Updates                                 5.2 kB/s |  15 kB     00:02    
RPM Fusion for Fedora 40 - Nonfree - Updates                                 1.2 kB/s |  17 kB     00:13    
Sublime Text - x86_64 - Stable                                               561  B/s | 2.9 kB     00:05    
Visual Studio Code                                                            10 kB/s | 1.5 kB     00:00    
Visual Studio Code                                                           347 kB/s |  79 kB     00:00    
Dependencies resolved.
=============================================================================================================
 Package                          Architecture  Version                  Repository                     Size
=============================================================================================================
Upgrading:
 adwaita-cursor-theme             noarch        46.2-2.fc40              updates                       516 k
 adwaita-icon-theme               noarch        46.2-2.fc40              updates                       407 k
 gvfs                             x86_64        1.54.1-1.fc40            updates                       366 k
 gvfs-afc                         x86_64        1.54.1-1.fc40            updates                        55 k
 gvfs-afp                         x86_64        1.54.1-1.fc40            updates                        67 k
 gvfs-archive                     x86_64        1.54.1-1.fc40            updates                        23 k
 gvfs-client                      x86_64        1.54.1-1.fc40            updates                       770 k
 gvfs-fuse                        x86_64        1.54.1-1.fc40            updates                        29 k
 gvfs-goa                         x86_64        1.54.1-1.fc40            updates                        80 k
 gvfs-gphoto2                     x86_64        1.54.1-1.fc40            updates                        60 k
 gvfs-mtp                         x86_64        1.54.1-1.fc40            updates                        60 k
 gvfs-smb                         x86_64        1.54.1-1.fc40            updates                        40 k
 openexr-libs                     x86_64        3.1.10-6.fc40            updates                       1.1 M
 perl-Pod-Usage                   noarch        4:2.03-504.fc40          updates                        40 k
 pipewire-codec-aptx              x86_64        1.0.7-1.fc40             rpmfusion-free-updates         26 k
 plymouth                         x86_64        24.004.60-10.fc40        updates                       126 k
 plymouth-core-libs               x86_64        24.004.60-10.fc40        updates                       117 k
 plymouth-graphics-libs           x86_64        24.004.60-10.fc40        updates                        62 k
 plymouth-plugin-label            x86_64        24.004.60-10.fc40        updates                        25 k
 plymouth-plugin-two-step         x86_64        24.004.60-10.fc40        updates                        33 k
 plymouth-scripts                 x86_64        24.004.60-10.fc40        updates                        18 k
 plymouth-system-theme            x86_64        24.004.60-10.fc40        updates                       9.1 k
 plymouth-theme-spinner           x86_64        24.004.60-10.fc40        updates                       188 k
 swtpm                            x86_64        0.8.1-12.fc40            updates                        30 k
 swtpm-libs                       x86_64        0.8.1-12.fc40            updates                        50 k
 swtpm-selinux                    noarch        0.8.1-12.fc40            updates                        22 k
 swtpm-tools                      x86_64        0.8.1-12.fc40            updates                       111 k
Installing dependencies:
 adwaita-icon-theme-legacy        noarch        46.2-1.fc40              updates                       2.5 M

Transaction Summary
=============================================================================================================
Install   1 Package
Upgrade  27 Packages

Total download size: 6.8 M
Is this ok [Y/n]: y
Downloading Packages:
RPM Fusion for Fedora 40 - Free - U154% [====================================================]  15 kB/s |  14(1/28): adwaita-cursor-theme-46.2-2.fc40.noarch.rpm                           61 kB/s | 516 kB     00:08    
(2/28): gvfs-1.54.1-1.fc40.x86_64.rpm                                        806 kB/s | 366 kB     00:00    
(3/28): gvfs-afc-1.54.1-1.fc40.x86_64.rpm                                    353 kB/s |  55 kB     00:00    
(4/28): gvfs-afp-1.54.1-1.fc40.x86_64.rpm                                    355 kB/s |  67 kB     00:00    
(5/28): gvfs-archive-1.54.1-1.fc40.x86_64.rpm                                135 kB/s |  23 kB     00:00    
(6/28): gvfs-client-1.54.1-1.fc40.x86_64.rpm                                 871 kB/s | 770 kB     00:00    
(7/28): gvfs-fuse-1.54.1-1.fc40.x86_64.rpm                                   174 kB/s |  29 kB     00:00    
(8/28): gvfs-goa-1.54.1-1.fc40.x86_64.rpm                                    514 kB/s |  80 kB     00:00    
(9/28): gvfs-gphoto2-1.54.1-1.fc40.x86_64.rpm                                355 kB/s |  60 kB     00:00    
(10/28): gvfs-mtp-1.54.1-1.fc40.x86_64.rpm                                    47 kB/s |  60 kB     00:01    
(11/28): gvfs-smb-1.54.1-1.fc40.x86_64.rpm                                   258 kB/s |  40 kB     00:00    
(12/28): openexr-libs-3.1.10-6.fc40.x86_64.rpm                               700 kB/s | 1.1 MB     00:01    
(13/28): perl-Pod-Usage-2.03-504.fc40.noarch.rpm                             259 kB/s |  40 kB     00:00    
(14/28): plymouth-24.004.60-10.fc40.x86_64.rpm                               421 kB/s | 126 kB     00:00    
(15/28): plymouth-core-libs-24.004.60-10.fc40.x86_64.rpm                     393 kB/s | 117 kB     00:00    
(16/28): plymouth-graphics-libs-24.004.60-10.fc40.x86_64.rpm                 398 kB/s |  62 kB     00:00    
(17/28): plymouth-plugin-label-24.004.60-10.fc40.x86_64.rpm                  166 kB/s |  25 kB     00:00    
(18/28): plymouth-plugin-two-step-24.004.60-10.fc40.x86_64.rpm               211 kB/s |  33 kB     00:00    
(19/28): plymouth-scripts-24.004.60-10.fc40.x86_64.rpm                       115 kB/s |  18 kB     00:00    
(20/28): plymouth-system-theme-24.004.60-10.fc40.x86_64.rpm                   60 kB/s | 9.1 kB     00:00    
(21/28): plymouth-theme-spinner-24.004.60-10.fc40.x86_64.rpm                 623 kB/s | 188 kB     00:00    
(22/28): swtpm-0.8.1-12.fc40.x86_64.rpm                                      192 kB/s |  30 kB     00:00    
(23/28): swtpm-libs-0.8.1-12.fc40.x86_64.rpm                                 324 kB/s |  50 kB     00:00    
(24/28): swtpm-selinux-0.8.1-12.fc40.noarch.rpm                              145 kB/s |  22 kB     00:00    
(25/28): swtpm-tools-0.8.1-12.fc40.x86_64.rpm                                700 kB/s | 111 kB     00:00    
(26/28): pipewire-codec-aptx-1.0.7-1.fc40.x86_64.rpm                          32 kB/s |  26 kB     00:00    
(27/28): adwaita-icon-theme-46.2-2.fc40.noarch.rpm                            21 kB/s | 407 kB     00:19    
(28/28): adwaita-icon-theme-legacy-46.2-1.fc40.noarch.rpm                     55 kB/s | 2.5 MB     00:46    
-------------------------------------------------------------------------------------------------------------
Total                                                                        143 kB/s | 6.8 MB     00:48     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                     1/1 
  Upgrading        : gvfs-client-1.54.1-1.fc40.x86_64                                                   1/55 
  Upgrading        : gvfs-1.54.1-1.fc40.x86_64                                                          2/55 
  Running scriptlet: gvfs-1.54.1-1.fc40.x86_64                                                          2/55 
  Upgrading        : plymouth-core-libs-24.004.60-10.fc40.x86_64                                        3/55 
  Upgrading        : plymouth-scripts-24.004.60-10.fc40.x86_64                                          4/55 
  Upgrading        : plymouth-24.004.60-10.fc40.x86_64                                                  5/55 
  Upgrading        : plymouth-graphics-libs-24.004.60-10.fc40.x86_64                                    6/55 
  Upgrading        : plymouth-plugin-label-24.004.60-10.fc40.x86_64                                     7/55 
  Upgrading        : plymouth-plugin-two-step-24.004.60-10.fc40.x86_64                                  8/55 
  Upgrading        : plymouth-theme-spinner-24.004.60-10.fc40.x86_64                                    9/55 
  Running scriptlet: plymouth-theme-spinner-24.004.60-10.fc40.x86_64                                    9/55 
  Upgrading        : swtpm-libs-0.8.1-12.fc40.x86_64                                                   10/55 
  Upgrading        : swtpm-0.8.1-12.fc40.x86_64                                                        11/55 
  Upgrading        : swtpm-selinux-0.8.1-12.fc40.noarch                                                12/55 
  Running scriptlet: swtpm-selinux-0.8.1-12.fc40.noarch                                                12/55 
  Upgrading        : adwaita-cursor-theme-46.2-2.fc40.noarch                                           13/55 
  Installing       : adwaita-icon-theme-legacy-46.2-1.fc40.noarch                                      14/55 
  Upgrading        : adwaita-icon-theme-46.2-2.fc40.noarch                                             15/55 
  Upgrading        : swtpm-tools-0.8.1-12.fc40.x86_64                                                  16/55 
  Upgrading        : plymouth-system-theme-24.004.60-10.fc40.x86_64                                    17/55 
  Upgrading        : gvfs-afc-1.54.1-1.fc40.x86_64                                                     18/55 
  Running scriptlet: gvfs-afc-1.54.1-1.fc40.x86_64                                                     18/55 
  Upgrading        : gvfs-afp-1.54.1-1.fc40.x86_64                                                     19/55 
  Running scriptlet: gvfs-afp-1.54.1-1.fc40.x86_64                                                     19/55 
  Upgrading        : gvfs-archive-1.54.1-1.fc40.x86_64                                                 20/55 
  Running scriptlet: gvfs-archive-1.54.1-1.fc40.x86_64                                                 20/55 
  Upgrading        : gvfs-fuse-1.54.1-1.fc40.x86_64                                                    21/55 
  Upgrading        : gvfs-goa-1.54.1-1.fc40.x86_64                                                     22/55 
  Running scriptlet: gvfs-goa-1.54.1-1.fc40.x86_64                                                     22/55 
  Upgrading        : gvfs-gphoto2-1.54.1-1.fc40.x86_64                                                 23/55 
  Running scriptlet: gvfs-gphoto2-1.54.1-1.fc40.x86_64                                                 23/55 
  Upgrading        : gvfs-mtp-1.54.1-1.fc40.x86_64                                                     24/55 
  Running scriptlet: gvfs-mtp-1.54.1-1.fc40.x86_64                                                     24/55 
  Upgrading        : gvfs-smb-1.54.1-1.fc40.x86_64                                                     25/55 
  Running scriptlet: gvfs-smb-1.54.1-1.fc40.x86_64                                                     25/55 
  Upgrading        : pipewire-codec-aptx-1.0.7-1.fc40.x86_64                                           26/55 
  Upgrading        : perl-Pod-Usage-4:2.03-504.fc40.noarch                                             27/55 
  Upgrading        : openexr-libs-3.1.10-6.fc40.x86_64                                                 28/55 
  Cleanup          : plymouth-system-theme-24.004.60-5.fc40.x86_64                                     29/55 
  Cleanup          : plymouth-theme-spinner-24.004.60-5.fc40.x86_64                                    30/55 
  Running scriptlet: plymouth-theme-spinner-24.004.60-5.fc40.x86_64                                    30/55 
  Cleanup          : adwaita-icon-theme-46.0-1.fc40.noarch                                             31/55 
  Cleanup          : plymouth-plugin-two-step-24.004.60-5.fc40.x86_64                                  32/55 
  Cleanup          : plymouth-plugin-label-24.004.60-5.fc40.x86_64                                     33/55 
  Cleanup          : plymouth-24.004.60-5.fc40.x86_64                                                  34/55 
  Cleanup          : gvfs-smb-1.54.0-2.fc40.x86_64                                                     35/55 
  Cleanup          : gvfs-mtp-1.54.0-2.fc40.x86_64                                                     36/55 
  Cleanup          : gvfs-gphoto2-1.54.0-2.fc40.x86_64                                                 37/55 
  Cleanup          : gvfs-goa-1.54.0-2.fc40.x86_64                                                     38/55 
  Cleanup          : gvfs-archive-1.54.0-2.fc40.x86_64                                                 39/55 
  Cleanup          : gvfs-afp-1.54.0-2.fc40.x86_64                                                     40/55 
  Cleanup          : gvfs-afc-1.54.0-2.fc40.x86_64                                                     41/55 
  Cleanup          : plymouth-graphics-libs-24.004.60-5.fc40.x86_64                                    42/55 
  Cleanup          : gvfs-fuse-1.54.0-2.fc40.x86_64                                                    43/55 
  Cleanup          : plymouth-scripts-24.004.60-5.fc40.x86_64                                          44/55 
  Cleanup          : adwaita-cursor-theme-46.0-1.fc40.noarch                                           45/55 
  Cleanup          : perl-Pod-Usage-4:2.03-503.fc40.noarch                                             46/55 
  Cleanup          : gvfs-1.54.0-2.fc40.x86_64                                                         47/55 
  Cleanup          : swtpm-tools-0.8.1-11.fc40.x86_64                                                  48/55 
  Cleanup          : swtpm-0.8.1-11.fc40.x86_64                                                        49/55 
  Cleanup          : swtpm-selinux-0.8.1-11.fc40.noarch                                                50/55 
  Running scriptlet: swtpm-selinux-0.8.1-11.fc40.noarch                                                50/55 
  Cleanup          : swtpm-libs-0.8.1-11.fc40.x86_64                                                   51/55 
  Cleanup          : gvfs-client-1.54.0-2.fc40.x86_64                                                  52/55 
  Cleanup          : plymouth-core-libs-24.004.60-5.fc40.x86_64                                        53/55 
  Cleanup          : pipewire-codec-aptx-1.0.6-1.fc40.x86_64                                           54/55 
  Cleanup          : openexr-libs-3.1.10-5.fc40.x86_64                                                 55/55 
  Running scriptlet: swtpm-selinux-0.8.1-12.fc40.noarch                                                55/55 
  Running scriptlet: openexr-libs-3.1.10-5.fc40.x86_64                                                 55/55 
Running in chroot, ignoring command 'daemon-reload'
Running in chroot, ignoring command 'reload-or-restart'

Running in chroot, ignoring command 'list-units'


Upgraded:
  adwaita-cursor-theme-46.2-2.fc40.noarch              adwaita-icon-theme-46.2-2.fc40.noarch                 
  gvfs-1.54.1-1.fc40.x86_64                            gvfs-afc-1.54.1-1.fc40.x86_64                         
  gvfs-afp-1.54.1-1.fc40.x86_64                        gvfs-archive-1.54.1-1.fc40.x86_64                     
  gvfs-client-1.54.1-1.fc40.x86_64                     gvfs-fuse-1.54.1-1.fc40.x86_64                        
  gvfs-goa-1.54.1-1.fc40.x86_64                        gvfs-gphoto2-1.54.1-1.fc40.x86_64                     
  gvfs-mtp-1.54.1-1.fc40.x86_64                        gvfs-smb-1.54.1-1.fc40.x86_64                         
  openexr-libs-3.1.10-6.fc40.x86_64                    perl-Pod-Usage-4:2.03-504.fc40.noarch                 
  pipewire-codec-aptx-1.0.7-1.fc40.x86_64              plymouth-24.004.60-10.fc40.x86_64                     
  plymouth-core-libs-24.004.60-10.fc40.x86_64          plymouth-graphics-libs-24.004.60-10.fc40.x86_64       
  plymouth-plugin-label-24.004.60-10.fc40.x86_64       plymouth-plugin-two-step-24.004.60-10.fc40.x86_64     
  plymouth-scripts-24.004.60-10.fc40.x86_64            plymouth-system-theme-24.004.60-10.fc40.x86_64        
  plymouth-theme-spinner-24.004.60-10.fc40.x86_64      swtpm-0.8.1-12.fc40.x86_64                            
  swtpm-libs-0.8.1-12.fc40.x86_64                      swtpm-selinux-0.8.1-12.fc40.noarch                    
  swtpm-tools-0.8.1-12.fc40.x86_64                    
Installed:
  adwaita-icon-theme-legacy-46.2-1.fc40.noarch                                                               

Complete!
root@localhost-live:/# 

long list but i dont see any usefull update

May be this thread has some information which I don’t understand nad seems similar issue like mine

Only windows boot entry is showing.

root@localhost-live:/# cat /etc/default/grub
GRUB_TIMEOUT="10"
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT="saved"
GRUB_DISABLE_SUBMENU="true"
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rhgb quiet pci=noaer rd.driver.blacklist=nouveau modprobe.blacklist=nouveau"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG="true"
#GRUB_THEME="/boot/grub2/themes/CyberEXS/theme.txt"
root@localhost-live:/# 

Now lets try something with grub.

  1. rm /boot/grub2/grub.cfg /boot/efi/EFI/fedora/grub.cfg
  2. dnf reinstall grub2-* shim*
  3. grub2-editenv - list
  4. If #3 shows menu_auto_hide=1 as one of the items then run grub2-editenv - unset menu_auto_hide.

After doing this then exit the chroot and reboot back to the installed system. Ignore the linpus entry and try booting with the fedora 6.8.10 kernel.

EDIT:
When you run the command in #3 please post that output before continuing. Your linked post may be a factor and I would like to see what is actually there.

root@localhost-live:/# rm /boot/grub2/grub.cfg /boot/efi/EFI/fedora/grub.cfg
rm: remove regular file '/boot/grub2/grub.cfg'? 
rm: remove regular file '/boot/efi/EFI/fedora/grub.cfg'? y
root@localhost-live:/# dnf reinstall grub2-* shim*
Last metadata expiration check: 0:31:12 ago on Sat 01 Jun 2024 01:30:45 AM IST.
Dependencies resolved.
================================================================================
 Package                    Arch        Version              Repository    Size
================================================================================
Reinstalling:
 grub2-common               noarch      1:2.06-121.fc40      updates      921 k
 grub2-efi-ia32             x86_64      1:2.06-121.fc40      updates      2.1 M
 grub2-efi-ia32-cdboot      x86_64      1:2.06-121.fc40      updates      2.1 M
 grub2-efi-x64              x86_64      1:2.06-121.fc40      updates      2.1 M
 grub2-efi-x64-cdboot       x86_64      1:2.06-121.fc40      updates      2.1 M
 grub2-pc                   x86_64      1:2.06-121.fc40      updates       17 k
 grub2-pc-modules           noarch      1:2.06-121.fc40      updates      1.1 M
 grub2-tools                x86_64      1:2.06-121.fc40      updates      1.8 M
 grub2-tools-efi            x86_64      1:2.06-121.fc40      updates      553 k
 grub2-tools-extra          x86_64      1:2.06-121.fc40      updates      851 k
 grub2-tools-minimal        x86_64      1:2.06-121.fc40      updates      617 k
 shim-ia32                  x86_64      15.8-3               fedora       413 k
 shim-x64                   x86_64      15.8-3               fedora       467 k

Transaction Summary
================================================================================

Total download size: 15 M
Installed size: 56 M
Is this ok [Y/n]: y
Downloading Packages:
(1/13): shim-ia32-15.8-3.x86_64.rpm             361 kB/s | 413 kB     00:01    
(2/13): shim-x64-15.8-3.x86_64.rpm              387 kB/s | 467 kB     00:01    
(3/13): grub2-common-2.06-121.fc40.noarch.rpm   474 kB/s | 921 kB     00:01    
(4/13): grub2-efi-x64-2.06-121.fc40.x86_64.rpm  3.8 MB/s | 2.1 MB     00:00    
(5/13): grub2-efi-ia32-2.06-121.fc40.x86_64.rpm 704 kB/s | 2.1 MB     00:02    
(6/13): grub2-pc-2.06-121.fc40.x86_64.rpm        98 kB/s |  17 kB     00:00    
(7/13): grub2-pc-modules-2.06-121.fc40.noarch.r 2.9 MB/s | 1.1 MB     00:00    
(8/13): grub2-tools-2.06-121.fc40.x86_64.rpm    2.8 MB/s | 1.8 MB     00:00    
(9/13): grub2-tools-efi-2.06-121.fc40.x86_64.rp 2.2 MB/s | 553 kB     00:00    
(10/13): grub2-tools-extra-2.06-121.fc40.x86_64 2.3 MB/s | 851 kB     00:00    
(11/13): grub2-tools-minimal-2.06-121.fc40.x86_ 1.7 MB/s | 617 kB     00:00    
(12/13): grub2-efi-ia32-cdboot-2.06-121.fc40.x8 393 kB/s | 2.1 MB     00:05    
(13/13): grub2-efi-x64-cdboot-2.06-121.fc40.x86 250 kB/s | 2.1 MB     00:08    
--------------------------------------------------------------------------------
Total                                           1.0 MB/s |  15 MB     00:14     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Reinstalling     : grub2-common-1:2.06-121.fc40.noarch                   1/26 
  Reinstalling     : grub2-tools-minimal-1:2.06-121.fc40.x86_64            2/26 
  Running scriptlet: grub2-tools-1:2.06-121.fc40.x86_64                    3/26 
  Reinstalling     : grub2-tools-1:2.06-121.fc40.x86_64                    3/26 
  Running scriptlet: grub2-tools-1:2.06-121.fc40.x86_64                    3/26 
  Reinstalling     : grub2-efi-ia32-1:2.06-121.fc40.x86_64                 4/26 
  Reinstalling     : grub2-efi-x64-1:2.06-121.fc40.x86_64                  5/26 
  Reinstalling     : grub2-pc-modules-1:2.06-121.fc40.noarch               6/26 
  Reinstalling     : grub2-pc-1:2.06-121.fc40.x86_64                       7/26 
  Reinstalling     : shim-x64-15.8-3.x86_64                                8/26 
  Reinstalling     : shim-ia32-15.8-3.x86_64                               9/26 
  Reinstalling     : grub2-tools-extra-1:2.06-121.fc40.x86_64             10/26 
  Reinstalling     : grub2-efi-ia32-cdboot-1:2.06-121.fc40.x86_64         11/26 
  Reinstalling     : grub2-efi-x64-cdboot-1:2.06-121.fc40.x86_64          12/26 
  Reinstalling     : grub2-tools-efi-1:2.06-121.fc40.x86_64               13/26 
  Cleanup          : grub2-pc-1:2.06-121.fc40.x86_64                      14/26 
  Cleanup          : grub2-pc-modules-1:2.06-121.fc40.noarch              15/26 
  Cleanup          : grub2-efi-x64-cdboot-1:2.06-121.fc40.x86_64          16/26 
  Cleanup          : grub2-efi-ia32-cdboot-1:2.06-121.fc40.x86_64         17/26 
  Cleanup          : shim-x64-15.8-3.x86_64                               18/26 
  Cleanup          : grub2-efi-x64-1:2.06-121.fc40.x86_64                 19/26 
  Cleanup          : shim-ia32-15.8-3.x86_64                              20/26 
  Cleanup          : grub2-efi-ia32-1:2.06-121.fc40.x86_64                21/26 
  Cleanup          : grub2-tools-extra-1:2.06-121.fc40.x86_64             22/26 
  Cleanup          : grub2-tools-minimal-1:2.06-121.fc40.x86_64           23/26 
  Running scriptlet: grub2-tools-1:2.06-121.fc40.x86_64                   24/26 
  Cleanup          : grub2-tools-1:2.06-121.fc40.x86_64                   24/26 
  Running scriptlet: grub2-tools-1:2.06-121.fc40.x86_64                   24/26 
Running in chroot, ignoring command 'list-units'

  Cleanup          : grub2-tools-efi-1:2.06-121.fc40.x86_64               25/26 
  Cleanup          : grub2-common-1:2.06-121.fc40.noarch                  26/26 
  Running scriptlet: grub2-common-1:2.06-121.fc40.noarch                  26/26 
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.10-300.fc40.x86_64
Found initrd image: /boot/initramfs-6.8.10-300.fc40.x86_64.img
fgrep: warning: fgrep is obsolescent; using grep -F
Found linux image: /boot/vmlinuz-6.8.9-300.fc40.x86_64
Found initrd image: /boot/initramfs-6.8.9-300.fc40.x86_64.img
fgrep: warning: fgrep is obsolescent; using grep -F
Found linux image: /boot/vmlinuz-0-rescue-5f391706b7cf43a0ba83c55ca1e9fd9e
Found initrd image: /boot/initramfs-0-rescue-5f391706b7cf43a0ba83c55ca1e9fd9e.img
fgrep: warning: fgrep is obsolescent; using grep -F
Found linux image: /boot/vmlinuz-6.8.10-300.fc40.x86_64
Found initrd image: /boot/initramfs-6.8.10-300.fc40.x86_64.img
fgrep: warning: fgrep is obsolescent; using grep -F
Found linux image: /boot/vmlinuz-6.8.9-300.fc40.x86_64
Found initrd image: /boot/initramfs-6.8.9-300.fc40.x86_64.img
fgrep: warning: fgrep is obsolescent; using grep -F
Found linux image: /boot/vmlinuz-0-rescue-5f391706b7cf43a0ba83c55ca1e9fd9e
Found initrd image: /boot/initramfs-0-rescue-5f391706b7cf43a0ba83c55ca1e9fd9e.img
fgrep: warning: fgrep is obsolescent; using grep -F
Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
Found linux image: /boot/vmlinuz-6.8.10-300.fc40.x86_64
Found initrd image: /boot/initramfs-6.8.10-300.fc40.x86_64.img
fgrep: warning: fgrep is obsolescent; using grep -F
Found linux image: /boot/vmlinuz-6.8.9-300.fc40.x86_64
Found initrd image: /boot/initramfs-6.8.9-300.fc40.x86_64.img
fgrep: warning: fgrep is obsolescent; using grep -F
Found linux image: /boot/vmlinuz-0-rescue-5f391706b7cf43a0ba83c55ca1e9fd9e
Found initrd image: /boot/initramfs-0-rescue-5f391706b7cf43a0ba83c55ca1e9fd9e.img
fgrep: warning: fgrep is obsolescent; using grep -F
Adding boot menu entry for UEFI Firmware Settings ...
done

Running in chroot, ignoring command 'daemon-reload'
Running in chroot, ignoring command 'reload-or-restart'

Running in chroot, ignoring command 'list-units'


Reinstalled:
  grub2-common-1:2.06-121.fc40.noarch                                           
  grub2-efi-ia32-1:2.06-121.fc40.x86_64                                         
  grub2-efi-ia32-cdboot-1:2.06-121.fc40.x86_64                                  
  grub2-efi-x64-1:2.06-121.fc40.x86_64                                          
  grub2-efi-x64-cdboot-1:2.06-121.fc40.x86_64                                   
  grub2-pc-1:2.06-121.fc40.x86_64                                               
  grub2-pc-modules-1:2.06-121.fc40.noarch                                       
  grub2-tools-1:2.06-121.fc40.x86_64                                            
  grub2-tools-efi-1:2.06-121.fc40.x86_64                                        
  grub2-tools-extra-1:2.06-121.fc40.x86_64                                      
  grub2-tools-minimal-1:2.06-121.fc40.x86_64                                    
  shim-ia32-15.8-3.x86_64                                                       
  shim-x64-15.8-3.x86_64                                                        

Complete!

output YOU ASKED FOR :

root@localhost-live:/# grub2-editenv - list
saved_entry=5f391706b7cf43a0ba83c55ca1e9fd9e-6.8.10-300.fc40.x86_64
menu_auto_hide=1
boot_success=0
boot_indeterminate=0
blsdir=/root/boot/loader/entries
root@localhost-live:/# 

failed command

root@localhost-live:/# grub2-editenv unset menu_auto_hide
Unknown command `menu_auto_hide'.
Usage: grub2-editenv [OPTION...] FILENAME COMMAND
Try 'grub2-editenv --help' or 'grub2-editenv --usage' for more information.

Ok despite that the last command failed

I got this while booting

result :

The linked thread references the blsdir entry there.
I may have had a typo in the command I gave you.
please run grub2-editenv - unset menu_auto_hide
and grub2-editenv - unset blsdir
then repeat the grub2-editenv - list to confirm that those 2 lines are removed.
Once that has been done then try the exit from chroot and reboot again.

well I think its fixed I am running 6.8.10 kernel and grub menu shows all the kernels now.
about the duplicate kernel entires on grub menu grub-customizer gui app already fixed that.

but if those commands are still required then i’ll run those , but those required live booting from media device?

sudo grub2-editenv - list                               
[sudo] password for sreyaz: 
saved_entry=5f391706b7cf43a0ba83c55ca1e9fd9e-6.8.10-300.fc40.x86_64
menu_auto_hide=1
boot_success=1
boot_indeterminate=0
blsdir=/root/boot/loader/entries

Since you are now in fedora then the live media is not required.

Instead use sudo grub2-editenv - unset blsdir
and sudo grub2-editenv - unset menu_auto_hide.