diff options
author | Nico Jensch | 2024-07-28 18:54:22 +0200 |
---|---|---|
committer | Nico Jensch | 2024-07-28 18:54:22 +0200 |
commit | 0eb3a7d05430675a048669570714e59e7802c20b (patch) | |
tree | 4ef813aac8cfe787ab7bd44c12910cf0fa9227cb /grub-btrfs-snapper.service | |
parent | 7109a37086f9ea3c157e1f8b77f7ee75c5ddb663 (diff) | |
download | aur-0eb3a7d05430675a048669570714e59e7802c20b.tar.gz |
fix: journalctl noise
Diffstat (limited to 'grub-btrfs-snapper.service')
-rw-r--r-- | grub-btrfs-snapper.service | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/grub-btrfs-snapper.service b/grub-btrfs-snapper.service index ba86e5c766ba..83f005e7b130 100644 --- a/grub-btrfs-snapper.service +++ b/grub-btrfs-snapper.service @@ -8,4 +8,4 @@ Environment="PATH=/sbin:/bin:/usr/sbin:/usr/bin" # Load environment variables from the configuration EnvironmentFile=/etc/default/grub-btrfs/config # If we aren't booted off a snapshot, regenerate just '/boot/grub/grub-btrfs.cfg' if it exists and is not empty, else regenerate the whole grub menu -ExecStart=bash -c 'if [[ -z $(/usr/bin/findmnt -n / | /usr/bin/grep "\.snapshots") ]]; then if [ -s "${GRUB_BTRFS_GRUB_DIRNAME:-/boot/grub}/grub-btrfs.cfg" ]; then /etc/grub.d/41_snapshots-btrfs; else ${GRUB_BTRFS_MKCONFIG:-grub-mkconfig} -o ${GRUB_BTRFS_GRUB_DIRNAME:-/boot/grub}/grub.cfg; fi; fi' +ExecStart=bash -c 'if [[ -z $(/usr/bin/findmnt -n / | /usr/bin/grep --fixed-strings ".snapshots") ]]; then if [ -s "${GRUB_BTRFS_GRUB_DIRNAME:-/boot/grub}/grub-btrfs.cfg" ]; then /etc/grub.d/41_snapshots-btrfs; else ${GRUB_BTRFS_MKCONFIG:-grub-mkconfig} -o ${GRUB_BTRFS_GRUB_DIRNAME:-/boot/grub}/grub.cfg; fi; fi' |