-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
install-grub.pl: use findmnt to get the boot filesystem
The current implementation of GetFS uses heuristics to find the best filesystem for the given boot path. Using findmnt is more robust. Specifically, this fixes mounting tmpfs on / for [NixOS impermanence](https://github.com/nix-community/impermanence). Before this change, GetFs would incorrectly match /boot to the tmpfs filesystem, resulting in a broken grub config.
- Loading branch information
1 parent
ef56e77
commit ca00777
Showing
1 changed file
with
5 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters