Skip to content

Commit

Permalink
Update EnvironmentFile (#65)
Browse files Browse the repository at this point in the history
* Change `EnvironmentFile` to match the new design of the configuration file. (#64)
  • Loading branch information
Antynea authored Dec 15, 2018
1 parent 28990c4 commit 091ffc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grub-btrfs.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ Type=oneshot
# 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
EnvironmentFile=/etc/default/grub-btrfs/config
# Regenerate just '/boot/grub/grub-btrfs.cfg' if it exists and is not empty, else regenerate the whole grub menu
ExecStart=/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'

0 comments on commit 091ffc0

Please sign in to comment.