From 091ffc0ae990ffe462b7119ff2606eca4ae0f81b Mon Sep 17 00:00:00 2001 From: Antynea Date: Sat, 15 Dec 2018 03:35:40 +0100 Subject: [PATCH] Update EnvironmentFile (#65) * Change `EnvironmentFile` to match the new design of the configuration file. (#64) --- grub-btrfs.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grub-btrfs.service b/grub-btrfs.service index e726d34..42d767a 100644 --- a/grub-btrfs.service +++ b/grub-btrfs.service @@ -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'