mirror of
https://github.com/Antynea/grub-btrfs.git
synced 2026-08-19 21:28:24 +08:00
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:
committed by
GitHub
parent
a79c9cc42c
commit
a181e2ca41
8
config
8
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"
|
||||
|
||||
Reference in New Issue
Block a user