Add pacman-init service to have less issues with untrusted keys
This commit is contained in:
parent
09b52acfcb
commit
fd710119c2
4 changed files with 49 additions and 23 deletions
2
PKGBUILD
2
PKGBUILD
|
@ -2,7 +2,7 @@
|
||||||
# Maintainer: Librewish <librewish@gmail.com>
|
# Maintainer: Librewish <librewish@gmail.com>
|
||||||
|
|
||||||
pkgname=garuda-common-settings
|
pkgname=garuda-common-settings
|
||||||
pkgver=1.2.1
|
pkgver=1.2.2
|
||||||
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"
|
||||||
|
|
8
etc/systemd/system/etc-pacman.d-gnupg.mount
Normal file
8
etc/systemd/system/etc-pacman.d-gnupg.mount
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Temporary /etc/pacman.d/gnupg directory
|
||||||
|
|
||||||
|
[Mount]
|
||||||
|
What=tmpfs
|
||||||
|
Where=/etc/pacman.d/gnupg
|
||||||
|
Type=tmpfs
|
||||||
|
Options=mode=0755
|
16
etc/systemd/system/pacman-init.service
Normal file
16
etc/systemd/system/pacman-init.service
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Initializes Pacman keyring
|
||||||
|
Wants=haveged.service
|
||||||
|
After=haveged.service
|
||||||
|
Requires=etc-pacman.d-gnupg.mount
|
||||||
|
After=etc-pacman.d-gnupg.mount
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
RemainAfterExit=yes
|
||||||
|
ExecStart=/usr/bin/pacman-key --init
|
||||||
|
ExecStart=/usr/bin/pacman-key --populate chaotic
|
||||||
|
ExecStart=/usr/bin/pacman-key --populate archlinux
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
|
@ -7,38 +7,40 @@ msg() {
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
systemctl enable haveged
|
|
||||||
systemctl enable systemd-swap
|
|
||||||
systemctl enable irqbalance
|
|
||||||
systemctl enable nohang-desktop
|
|
||||||
systemctl enable memavaild
|
|
||||||
systemctl enable prelockd
|
|
||||||
systemctl enable ananicy
|
systemctl enable ananicy
|
||||||
systemctl enable preload
|
|
||||||
systemctl enable grub-btrfs.path
|
|
||||||
systemctl enable fstrim.timer
|
|
||||||
systemctl enable btrfs-scrub.timer
|
|
||||||
systemctl enable btrfs-defrag.timer
|
|
||||||
systemctl enable btrfs-balance.timer
|
systemctl enable btrfs-balance.timer
|
||||||
|
systemctl enable btrfs-defrag.timer
|
||||||
|
systemctl enable btrfs-scrub.timer
|
||||||
systemctl enable btrfs-trim.timer
|
systemctl enable btrfs-trim.timer
|
||||||
|
systemctl enable fstrim.timer
|
||||||
|
systemctl enable grub-btrfs.path
|
||||||
|
systemctl enable haveged
|
||||||
|
systemctl enable irqbalance
|
||||||
|
systemctl enable memavaild
|
||||||
|
systemctl enable nohang-desktop
|
||||||
|
systemctl enable pacman-init
|
||||||
|
systemctl enable preload
|
||||||
|
systemctl enable prelockd
|
||||||
|
systemctl enable systemd-swap
|
||||||
}
|
}
|
||||||
|
|
||||||
post_upgrade() {
|
post_upgrade() {
|
||||||
msg "Attempting to enable services..."
|
msg "Attempting to enable services..."
|
||||||
systemctl is-active haveged >/dev/null || systemctl enable haveged
|
|
||||||
systemctl is-active systemd-swap >/dev/null || systemctl enable systemd-swap
|
|
||||||
systemctl is-active irqbalance >/dev/null || systemctl enable irqbalance
|
|
||||||
systemctl is-active nohang-desktop >/dev/null || systemctl enable nohang-desktop
|
|
||||||
systemctl is-active memavaild >/dev/null || systemctl enable memavaild
|
|
||||||
systemctl is-active prelockd >/dev/null || systemctl enable prelockd
|
|
||||||
systemctl is-active ananicy >/dev/null || systemctl enable ananicy
|
systemctl is-active ananicy >/dev/null || systemctl enable ananicy
|
||||||
systemctl is-active preload >/dev/null || systemctl enable preload
|
|
||||||
systemctl is-active grub-btrfs.path >/dev/null || systemctl enable grub-btrfs.path
|
|
||||||
systemctl is-active fstrim.timer >/dev/null || systemctl enable fstrim.timer
|
|
||||||
systemctl is-active btrfs-scrub.timer >/dev/null || systemctl enable btrfs-scrub.timer
|
|
||||||
systemctl is-active btrfs-defrag.timer >/dev/null || systemctl enable btrfs-defrag.timer
|
|
||||||
systemctl is-active btrfs-balance.timer >/dev/null || systemctl enable btrfs-balance.timer
|
systemctl is-active btrfs-balance.timer >/dev/null || systemctl enable btrfs-balance.timer
|
||||||
|
systemctl is-active btrfs-defrag.timer >/dev/null || systemctl enable btrfs-defrag.timer
|
||||||
|
systemctl is-active btrfs-scrub.timer >/dev/null || systemctl enable btrfs-scrub.timer
|
||||||
systemctl is-active btrfs-trim.timer >/dev/null || systemctl enable btrfs-trim.timer
|
systemctl is-active btrfs-trim.timer >/dev/null || systemctl enable btrfs-trim.timer
|
||||||
|
systemctl is-active fstrim.timer >/dev/null || systemctl enable fstrim.timer
|
||||||
|
systemctl is-active grub-btrfs.path >/dev/null || systemctl enable grub-btrfs.path
|
||||||
|
systemctl is-active haveged >/dev/null || systemctl enable haveged
|
||||||
|
systemctl is-active irqbalance >/dev/null || systemctl enable irqbalance
|
||||||
|
systemctl is-active memavaild >/dev/null || systemctl enable memavaild
|
||||||
|
systemctl is-active nohang-desktop >/dev/null || systemctl enable nohang-desktop
|
||||||
|
systemctl is-active pacman-init >/dev/null || systemctl enable pacman-init
|
||||||
|
systemctl is-active preload >/dev/null || systemctl enable preload
|
||||||
|
systemctl is-active prelockd >/dev/null || systemctl enable prelockd
|
||||||
|
systemctl is-active systemd-swap >/dev/null || systemctl enable systemd-swap
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
msg "Updating font cache..."
|
msg "Updating font cache..."
|
||||||
|
|
Loading…
Reference in a new issue