Author: Kevin Chevreuil - Kaisen <kaisen@kaisenlinux.org>

--- grub-btrfs-4.13.orig/config
+++ grub-btrfs-4.13/config
@@ -1,15 +1,14 @@
 #!/usr/bin/env bash
 
-
-GRUB_BTRFS_VERSION=4.12-master-2023-04-28T16:26:00+00:00
+GRUB_BTRFS_VERSION=4.13-9kaisen
 
 # Disable grub-btrfs.
 # Default: "false"
-#GRUB_BTRFS_DISABLE="true"
+GRUB_BTRFS_DISABLE="false"
 
 # Name appearing in the Grub menu.
 # Default: "Use distribution information from /etc/os-release."
-#GRUB_BTRFS_SUBMENUNAME="Arch Linux snapshots"
+GRUB_BTRFS_SUBMENUNAME="BTRFS snapshots"
 
 # Custom title.
 # Shows/Hides "date" "snapshot" "type" "description" in the Grub menu, custom order available.
@@ -18,7 +17,7 @@ GRUB_BTRFS_VERSION=4.12-master-2023-04-2
 
 # Limit the number of snapshots populated in the GRUB menu.
 # Default: "50"
-#GRUB_BTRFS_LIMIT="50"
+GRUB_BTRFS_LIMIT="50"
 
 # Sort the found subvolumes by "ogeneration" or "generation" or "path" or "rootid".
 # # See Sorting section to https://btrfs.wiki.kernel.org/index.php/Manpage/btrfs-subvolume#SUBCOMMAND
@@ -28,11 +27,11 @@ GRUB_BTRFS_VERSION=4.12-master-2023-04-2
 
 # Show snapshots found during run "grub-mkconfig"
 # Default: "true"
-#GRUB_BTRFS_SHOW_SNAPSHOTS_FOUND="false"
+GRUB_BTRFS_SHOW_SNAPSHOTS_FOUND="true"
 
 # Show Total of snapshots found during run "grub-mkconfig"
 # Default: "true"
-#GRUB_BTRFS_SHOW_TOTAL_SNAPSHOTS_FOUND="true"
+GRUB_BTRFS_SHOW_TOTAL_SNAPSHOTS_FOUND="true"
 
 # By default, "grub-btrfs" automatically detects most existing kernels.
 # If you have one or more custom kernels, you can add them here.
@@ -54,7 +53,7 @@ GRUB_BTRFS_VERSION=4.12-master-2023-04-2
 # For dracut based distros this could be useful to pass "rd.live.overlay.overlayfs=1"
 # or "rd.live.overlay.readonly=1" to the Kernel for booting snapshots read only.
 # Default: ""
-#GRUB_BTRFS_SNAPSHOT_KERNEL_PARAMETERS="rd.live.overlay.overlayfs=1"
+GRUB_BTRFS_SNAPSHOT_KERNEL_PARAMETERS="rw splash kaisen-grub-btrfs"
 
 # Comma seperated mount options to be used when booting a snapshot.
 # They can be defined here as well as in the "/" line inside the respective snapshots'
@@ -98,19 +97,19 @@ GRUB_BTRFS_IGNORE_PREFIX_PATH=("var/lib/
 # Location of the folder containing the "grub.cfg" file.
 # Might be grub2 on some systems.
 # Default: "/boot/grub"
-#GRUB_BTRFS_GRUB_DIRNAME="/boot/grub2"
+GRUB_BTRFS_GRUB_DIRNAME="/boot/grub"
 
 # Location of kernels/initramfs/microcode.
 # Use by "grub-btrfs" to detect the boot partition and the location of kernels/initrafms/microcodes.
 # Default: "/boot"
-#GRUB_BTRFS_BOOT_DIRNAME="/boot"
+GRUB_BTRFS_BOOT_DIRNAME="/boot"
 
 # Location where grub-btrfs.cfg should be saved.
 # Some distributions (like OpenSuSE) store those files at the snapshot directory
 # instead of boot. Be aware that this direcory must be available for grub during
 # startup of the system.
 # Default: $GRUB_BTRFS_GRUB_DIRNAME
-#GRUB_BTRFS_GBTRFS_DIRNAME="/boot/grub"
+GRUB_BTRFS_GBTRFS_DIRNAME="/boot/grub"
 
 # Location of the directory where Grub searches for the grub-btrfs.cfg file.
 # Some distributions (like OpenSuSE) store those file at the snapshot directory
@@ -130,7 +129,7 @@ GRUB_BTRFS_IGNORE_PREFIX_PATH=("var/lib/
 # For example, on Fedora : "/sbin/grub2-mkconfig"
 # You can use only name or full path.
 # Default: grub-mkconfig
-#GRUB_BTRFS_MKCONFIG=/usr/bin/grub2-mkconfig
+GRUB_BTRFS_MKCONFIG=/usr/sbin/grub-mkconfig
 
 # Name of grub-script-check command, use by "grub-btrfs"
 # Might be 'grub2-script-check' on some systems (Fedora ...)
@@ -141,7 +140,7 @@ GRUB_BTRFS_IGNORE_PREFIX_PATH=("var/lib/
 # Path of grub-mkconfig_lib file, use by "grub-btrfs"
 # Might be '/usr/share/grub2/grub-mkconfig_lib' on some systems (Opensuse ...)
 # Default: /usr/share/grub/grub-mkconfig_lib
-#GRUB_BTRFS_MKCONFIG_LIB=/usr/share/grub2/grub-mkconfig_lib
+GRUB_BTRFS_MKCONFIG_LIB=/usr/share/grub/grub-mkconfig_lib
 
 # Password protection management for submenu,snapshots
 # Refer to the Grub documentation https://www.gnu.org/software/grub/manual/grub/grub.html#Authentication-and-authorisation
@@ -155,4 +154,4 @@ GRUB_BTRFS_IGNORE_PREFIX_PATH=("var/lib/
 # Disable authentication support for submenu of Grub-btrfs only (--unrestricted)
 # doesn't work if GRUB_BTRFS_PROTECTION_AUTHORIZED_USERS isn't empty
 # Default: "false"
-#GRUB_BTRFS_DISABLE_PROTECTION_SUBMENU="true"
+GRUB_BTRFS_DISABLE_PROTECTION_SUBMENU="false"
