Repository navigation
feat: add auto-detection for Fedora distribution - #428
Conversation
|
Hi @Antynea, I’m opening this PR because I recently tried to set up grub-btrfs on Fedora and realized it doesn't work out-of-the-box. Due to Fedora's specific With this patch, grub-btrfs becomes 100% "plug and play" for Fedora users. Detailed changes and reasoning: uses the grub2 suffix for its boot directory. Before these changes, a Fedora user would have to manually investigate why the snapshots weren't appearing and then edit the config file. This I've verified this on Fedora 44 and confirmed that the snapshots are now correctly generated and added to the menu without any manual Let me know if you have any questions! |
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.
c1c7887 to
d45a6ce
Compare
|
Hi @reynegton, Thanks for your time, I’ll merge your PR. |
|
thanks! |
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.