Auto clean pacman lock on reboot
This commit is contained in:
parent
ddae90df13
commit
892ccc3b63
3 changed files with 12 additions and 1 deletions
2
PKGBUILD
2
PKGBUILD
|
@ -2,7 +2,7 @@
|
|||
# Maintainer: Librewish <librewish@gmail.com>
|
||||
|
||||
pkgname=garuda-common-settings
|
||||
pkgver=2.0.4
|
||||
pkgver=2.1.0
|
||||
pkgrel=1
|
||||
arch=('any')
|
||||
url="https://gitlab.com/garuda-linux/themes-and-settings/settings/$pkgname"
|
||||
|
|
|
@ -3,6 +3,7 @@ post_install() {
|
|||
systemctl enable btrfs-defrag.timer
|
||||
systemctl enable btrfs-scrub.timer
|
||||
systemctl enable btrfs-trim.timer
|
||||
systemctl enable garuda-pacman-lock
|
||||
systemctl enable haveged
|
||||
systemctl enable memavaild
|
||||
systemctl enable nohang-desktop
|
||||
|
@ -19,6 +20,7 @@ post_upgrade() {
|
|||
systemctl enable btrfs-defrag.timer
|
||||
systemctl enable btrfs-scrub.timer
|
||||
systemctl enable btrfs-trim.timer
|
||||
systemctl enable garuda-pacman-lock
|
||||
systemctl enable haveged
|
||||
systemctl enable memavaild
|
||||
systemctl enable nohang-desktop
|
||||
|
|
9
usr/lib/systemd/system/garuda-pacman-lock.service
Normal file
9
usr/lib/systemd/system/garuda-pacman-lock.service
Normal 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
|
Loading…
Reference in a new issue