From a181e2ca41ef8da6e29e90cf507772f61c95d1d2 Mon Sep 17 00:00:00 2001 From: Reynegton Pinheiro Nunes <68282012+reynegton@users.noreply.github.com> Date: Sun, 10 May 2026 07:13:50 -0300 Subject: [PATCH] feat: add auto-detection for Fedora distribution (#428) Fedora uses non-standard paths and command names for GRUB (e.g., /boot/grub2 instead of /boot/grub, and grub2-mkconfig). This change adds a conditional block to detect Fedora via /etc/fedora-release and automatically sets the appropriate variables, improving the out-of-the-box experience for Fedora users. --- config | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config b/config index d9d6dbe..e1bbd5e 100644 --- a/config +++ b/config @@ -3,6 +3,14 @@ GRUB_BTRFS_VERSION=-master-2026-05-10T10:12:40+00:00 +# Distribution specific auto-detection (e.g. Fedora) +if [ -f /etc/fedora-release ]; then + GRUB_BTRFS_GRUB_DIRNAME="/boot/grub2" + GRUB_BTRFS_GBTRFS_DIRNAME="/boot/grub2" + GRUB_BTRFS_MKCONFIG="grub2-mkconfig" + GRUB_BTRFS_SCRIPT_CHECK="grub2-script-check" +fi + # Disable grub-btrfs. # Default: "false" #GRUB_BTRFS_DISABLE="true"