add cleanup algorithm
This commit is contained in:
parent
70ed2f5c60
commit
2bc20147a9
2 changed files with 2 additions and 2 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
PREFILE=/etc/snapper/.snap-pac-pre
|
PREFILE=/etc/snapper/.snap-pac-pre
|
||||||
if [ -f $PREFILE ]; then
|
if [ -f $PREFILE ]; then
|
||||||
SNAPPERPACPRE=$(cat $PREFILE)
|
SNAPPERPACPRE=$(cat $PREFILE)
|
||||||
snapper --config root create --type post --pre-number $SNAPPERPACPRE --description "pacman posttransaction"
|
snapper --config root create --cleanup-algorithm number --type post --pre-number $SNAPPERPACPRE --description "pacman posttransaction"
|
||||||
rm $PREFILE
|
rm $PREFILE
|
||||||
else
|
else
|
||||||
echo "WARNING: $PREFILE does not exist, so not performing post snapshot. If you are initially installing snap-pac, this is normal."
|
echo "WARNING: $PREFILE does not exist, so not performing post snapshot. If you are initially installing snap-pac, this is normal."
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
snapper --config root create --type pre --print-number --description "pacman pretransaction" > /etc/snapper/.snap-pac-pre
|
snapper --config root create --type pre --cleanup-algorithm number --print-number --description "pacman pretransaction" > /etc/snapper/.snap-pac-pre
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue