1
0
Fork 0
mirror of synced 2024-11-25 03:25:36 -05:00

Auto clean pacman lock on reboot

This commit is contained in:
TNE 2021-09-19 21:13:59 +02:00
parent ddae90df13
commit 892ccc3b63
3 changed files with 12 additions and 1 deletions

View file

@ -2,7 +2,7 @@
# Maintainer: Librewish <librewish@gmail.com> # Maintainer: Librewish <librewish@gmail.com>
pkgname=garuda-common-settings pkgname=garuda-common-settings
pkgver=2.0.4 pkgver=2.1.0
pkgrel=1 pkgrel=1
arch=('any') arch=('any')
url="https://gitlab.com/garuda-linux/themes-and-settings/settings/$pkgname" url="https://gitlab.com/garuda-linux/themes-and-settings/settings/$pkgname"

View file

@ -3,6 +3,7 @@ post_install() {
systemctl enable btrfs-defrag.timer systemctl enable btrfs-defrag.timer
systemctl enable btrfs-scrub.timer systemctl enable btrfs-scrub.timer
systemctl enable btrfs-trim.timer systemctl enable btrfs-trim.timer
systemctl enable garuda-pacman-lock
systemctl enable haveged systemctl enable haveged
systemctl enable memavaild systemctl enable memavaild
systemctl enable nohang-desktop systemctl enable nohang-desktop
@ -19,6 +20,7 @@ post_upgrade() {
systemctl enable btrfs-defrag.timer systemctl enable btrfs-defrag.timer
systemctl enable btrfs-scrub.timer systemctl enable btrfs-scrub.timer
systemctl enable btrfs-trim.timer systemctl enable btrfs-trim.timer
systemctl enable garuda-pacman-lock
systemctl enable haveged systemctl enable haveged
systemctl enable memavaild systemctl enable memavaild
systemctl enable nohang-desktop systemctl enable nohang-desktop

View file

@ -0,0 +1,9 @@
[Unit]
Description=Pacman lock cleaner
[Service]
Type=oneshot
ExecStart=rm /var/lib/pacman/db.lck
[Install]
WantedBy=multi-user.target