remove GRUB hook and script

This commit is contained in:
James Barnett 2016-04-25 09:22:23 -05:00
parent 54eec76bc8
commit 3f8ea86897
3 changed files with 0 additions and 63 deletions

View file

@ -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

View file

@ -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`.

View file

@ -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