Skip to content

Commit a181e2c

Browse files
authored
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.
1 parent a79c9cc commit a181e2c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎config‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33

44
GRUB_BTRFS_VERSION=-master-2026-05-10T10:12:40+00:00
55

6+
# Distribution specific auto-detection (e.g. Fedora)
7+
if [ -f /etc/fedora-release ]; then
8+
GRUB_BTRFS_GRUB_DIRNAME="/boot/grub2"
9+
GRUB_BTRFS_GBTRFS_DIRNAME="/boot/grub2"
10+
GRUB_BTRFS_MKCONFIG="grub2-mkconfig"
11+
GRUB_BTRFS_SCRIPT_CHECK="grub2-script-check"
12+
fi
13+
614
# Disable grub-btrfs.
715
# Default: "false"
816
#GRUB_BTRFS_DISABLE="true"

0 commit comments

Comments
 (0)