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.
This commit is contained in:
Reynegton Pinheiro Nunes
2026-05-10 07:13:50 -03:00
committed by GitHub
parent a79c9cc42c
commit a181e2ca41

8
config
View File

@@ -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"