From 3f8ea868974818543c14fce65999651b71710cf7 Mon Sep 17 00:00:00 2001 From: James Barnett Date: Mon, 25 Apr 2016 09:22:23 -0500 Subject: [PATCH] remove GRUB hook and script --- 99_grub-config.hook | 30 ------------------------------ README.md | 10 ---------- grub-config | 23 ----------------------- 3 files changed, 63 deletions(-) delete mode 100644 99_grub-config.hook delete mode 100755 grub-config diff --git a/99_grub-config.hook b/99_grub-config.hook deleted file mode 100644 index 9c545f1..0000000 --- a/99_grub-config.hook +++ /dev/null @@ -1,30 +0,0 @@ -# snap-pac -# https://github.com/wesbarnett/snap-pac -# Copyright (C) 2016 James W. Barnett - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -[Trigger] -Operation = Upgrade -Operation = Install -Operation = Remove -Type = Package -Target = * - -[Action] -Description = generate GRUB configuration file -Depends = grub -When = PostTransaction -Exec = /usr/share/libalpm/hooks.bin/snap-pac/grub-config diff --git a/README.md b/README.md index 5a418fe..b64add3 100644 --- a/README.md +++ b/README.md @@ -10,12 +10,6 @@ The snapshots are set up to use snapper's `number` algorithm. That is, snapper will periodically clean up snapshots tagged with `number` after reaching a set threshold in the snapper configuration file. -Additionally the package provides a hook to regenerate your GRUB configuration -file after every pacman transaction. This is useful when using -[grub-btrfs](https://aur.archlinux.org/packages/grub-btrfs/). If you don't -use GRUB, or if you don't want your configuration file generated every -transaction, then you should remove `99_grub-config.hook` after installation. - **Note:** Snapshots are only taken of the subvolume corresponding with the `root` snapper config; other subvolumes are not included. You must modify the scripts to include other subvolumes. Additionally, you should create subvolumes @@ -27,10 +21,6 @@ of directories you do *not* want included in your snapshots (*e.g.* Install [the package from the AUR](https://aur.archlinux.org/packages/snap-pac/). -Optionally, install -[grub-btrfs](https://aur.archlinux.org/packages/grub-btrfs/) to populate -your GRUB menu with the ability to boot into snapshots. - After installation, the hooks are located at `/usr/share/libalpm/hooks`, and the scripts are located at `/usr/share/libalpm/hooks.bin/snap-pac`. diff --git a/grub-config b/grub-config deleted file mode 100755 index 1768757..0000000 --- a/grub-config +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash - -# snap-pac -# https://github.com/wesbarnett/snap-pac -# Copyright (C) 2016 James W. Barnett - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -# Regenerates grub configuration file. Useful with grub-btrfs-git. - -/usr/bin/grub-mkconfig -o /boot/grub/grub.cfg 2> /dev/null