Missing Snapshot Entries in Grub Boot Menu

Snapshot booting is enabled:


erlangen:~ # tail -22 /boot/grub2/grub.cfg 
fi
### END /etc/grub.d/41_custom ###

### BEGIN /etc/grub.d/80_suse_btrfs_snapshot ###
btrfs-mount-subvol ($root) /.snapshots @/.snapshots
if  -f "/.snapshots/grub-snapshot.cfg" ]; then
  source "/.snapshots/grub-snapshot.cfg"
fi
### END /etc/grub.d/80_suse_btrfs_snapshot ###

### BEGIN /etc/grub.d/90_persistent ###
### END /etc/grub.d/90_persistent ###

### BEGIN /etc/grub.d/95_textmode ###

    # On EFI systems we can only have graphics *or* serial, so allow the user
    # to switch between the two
    hiddenentry 'Text mode' --hotkey 't' {
        set textmode=true
        terminal_output console
    }
### END /etc/grub.d/95_textmode ###
erlangen:~ # 

Configuration files exist:

erlangen:~ # cat /.snapshots/grub-snapshot.cfg 
if  -z "$extra_cmdline" ]; then
  submenu  "Start bootloader from a read-only snapshot" {
    if  -f "/.snapshots/704/grub-snapshot.cfg" ]; then
      source "/.snapshots/704/grub-snapshot.cfg"
    fi
    if  -f "/.snapshots/703/grub-snapshot.cfg" ]; then
      source "/.snapshots/703/grub-snapshot.cfg"
    fi
    if  -f "/.snapshots/702/grub-snapshot.cfg" ]; then
      source "/.snapshots/702/grub-snapshot.cfg"
    fi
    if  -f "/.snapshots/701/grub-snapshot.cfg" ]; then
      source "/.snapshots/701/grub-snapshot.cfg"
    fi
    if  x$snapshot_found != xtrue ]; then
      submenu "Not Found" { true; }
    fi
  }
fi
erlangen:~ # 

However no menu entries are shown when booting. Any idea?

Obvious answers - different subvolume is mounted on /.snapshots or $extra_cmdline is not empty when configuration file is processed.

Checked unconditionally executing contents of /.snapshots/grub-snapshot.cfg by removing test for extra_cmdline to no avail. Thus I presume the problem is with “btrfs-mount-subvol ($root) /.snapshots @/.snapshots” in file /boot/grub2/grub.cfg.

Don’t we have to run “grub2-mkconfig /boot/grub2/grub.cfg” to regenerate the grub entries after modification ???

https://bugzilla.opensuse.org/show_bug.cgi?id=1160038

This problem was fixed for me after a zypper dup today.

Hello, here is Leap 15.2.

The snapboot menu is not shown in grub, how to fix it manually? Thanks in advance.