diff options
Diffstat (limited to 'configs/profile-openrc/airootfs/etc')
-rwxr-xr-x | configs/profile-openrc/airootfs/etc/init.d/pacman-init | 30 | ||||
-rwxr-xr-x | configs/profile-openrc/airootfs/etc/local.d/pacman-init.start | 5 |
2 files changed, 5 insertions, 30 deletions
diff --git a/configs/profile-openrc/airootfs/etc/init.d/pacman-init b/configs/profile-openrc/airootfs/etc/init.d/pacman-init deleted file mode 100755 index b646e52..0000000 --- a/configs/profile-openrc/airootfs/etc/init.d/pacman-init +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/openrc-run -# Copyright (C) 2018 Parabola Project -# Copyright (C) Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -description="Initializes Pacman keyring" - -depend() { - use haveged - after haveged -} - -start() { - # Check that there's no keyring, if there isn't, create one - if [ ! -d /etc/pacman.d/gnupg ]; then - ebegin "Initializing Pacman keyring" - pacman-key --init &> /dev/null && - pacman-key --populate ${KEYS} &> /dev/null - else - ebegin "Pacman keyring already started" - fi -} - -stop() { - # If there's a keyring, delete it - if [ -d /etc/pacman.d/gnupg ]; then - ebegin "Stoping Pacman keyring" - rm -rf /etc/pacman.d/gnupg - fi -} diff --git a/configs/profile-openrc/airootfs/etc/local.d/pacman-init.start b/configs/profile-openrc/airootfs/etc/local.d/pacman-init.start new file mode 100755 index 0000000..5ab34f7 --- /dev/null +++ b/configs/profile-openrc/airootfs/etc/local.d/pacman-init.start @@ -0,0 +1,5 @@ +#!/bin/bash +if ! [ -d /etc/pacman.d/gnupg ]; then + pacman-key --init + pacman-key --populate archlinux archlinux32 parabola +fi |