comments in scripts; update location of prefile
This commit is contained in:
parent
d3afa0b201
commit
137875b568
3 changed files with 9 additions and 2 deletions
|
|
@ -17,4 +17,6 @@
|
||||||
# with this program; if not, write to the Free Software Foundation, Inc.,
|
# with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
# 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
|
/usr/bin/grub-mkconfig -o /boot/grub/grub.cfg 2> /dev/null
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,10 @@
|
||||||
# with this program; if not, write to the Free Software Foundation, Inc.,
|
# with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
# Takes a snapper post snapshot after a pacman transaction
|
||||||
|
|
||||||
PACMAN_CMD=$(ps -C pacman -o args=)
|
PACMAN_CMD=$(ps -C pacman -o args=)
|
||||||
PREFILE=/etc/snapper/.snap-pac-pre
|
PREFILE=/usr/share/libalpm/hooks.bin/snap-pac/.pre
|
||||||
if [ -f $PREFILE ]; then
|
if [ -f $PREFILE ]; then
|
||||||
SNAPPERPACPRE=$(cat $PREFILE)
|
SNAPPERPACPRE=$(cat $PREFILE)
|
||||||
snapper --config root create --cleanup-algorithm number --type post --pre-number $SNAPPERPACPRE --description "$PACMAN_CMD"
|
snapper --config root create --cleanup-algorithm number --type post --pre-number $SNAPPERPACPRE --description "$PACMAN_CMD"
|
||||||
|
|
|
||||||
|
|
@ -17,5 +17,8 @@
|
||||||
# with this program; if not, write to the Free Software Foundation, Inc.,
|
# with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
# Takes a snapper pre snapshot before a pacman transaction
|
||||||
|
|
||||||
PACMAN_CMD=$(ps -C pacman -o args=)
|
PACMAN_CMD=$(ps -C pacman -o args=)
|
||||||
snapper --config root create --type pre --cleanup-algorithm number --print-number --description "$PACMAN_CMD" > /etc/snapper/.snap-pac-pre
|
PREFILE=/usr/share/libalpm/hooks.bin/snap-pac/.pre
|
||||||
|
snapper --config root create --type pre --cleanup-algorithm number --print-number --description "$PACMAN_CMD" > $PREFILE
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue