From 66a218356a433d1782533eb99d87a9f8a06eb076 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pascal=20J=C3=A4ger?= Date: Sun, 31 Oct 2021 22:03:58 +0100 Subject: [PATCH] changed instruction for openrc local service --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 820329c..f09ed88 100644 --- a/README.md +++ b/README.md @@ -135,6 +135,8 @@ Just add the following script as `/etc/local.d/grub-btrfs-update.stop` bash -c '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' ``` + Make your script executeable with `chmod a+x /etc/local.d/grub-btrfs-update.stop`. + * The extension ".stop" at the end of the filename indicates to locald that this script should be run at shutdown. If you want to run the menu update on startup instead, rename the file to `grub-btrfs-update.start` * Works for snapper and timeshift