-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make 'grub-mkconfig' command name configurable (#56)
* Make 'grub-mkconfig' command name configurable - Use 'grub-mkconfig' as the default - Note that some systems use 'grub2-mkconfig' - Update 10-update_grub.conf to use the configurable grub directory name - Refactor the systemd commands for clarity and to avoid duplicate regeneration on first run * Update check_uuid_required() to work for partial regeneration of the GRUB menu
- Loading branch information
Showing
5 changed files
with
37 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
[Service] | ||
ExecStartPost=/usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg | ||
# Set the possible paths for `grub-mkconfig` | ||
Environment="PATH=/sbin:/bin:/usr/sbin:/usr/bin" | ||
# Load environment variables from the configuration | ||
EnvironmentFile=/etc/grub.d/41_snapshots-btrfs_config | ||
# Regenerate just '/boot/grub/grub-btrfs.cfg' if it exists, else regenerate the whole grub menu | ||
ExecStartPost=/bin/bash -c 'if [ -s "/boot/${GRUB_BTRFS_DIRNAME:-grub}/grub-btrfs.cfg" ]; then /etc/grub.d/41_snapshots-btrfs; else ${GRUB_BTRFS_MKCONFIG:-/usr/bin/grub-mkconfig} -o /boot/${GRUB_BTRFS_DIRNAME:-grub}/grub.cfg; fi' |
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
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
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
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