summaryrefslogtreecommitdiff
path: root/configs/profile-openrc
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2020-01-18 03:11:31 -0300
committerDavid P <megver83@parabola.nu>2020-01-18 03:13:09 -0300
commitc4819c5db83925f906c2a273f92248b84cb5815f (patch)
treee70d460d6f5b3a2bc6e6e0c5b43d1156e6ffcc16 /configs/profile-openrc
parent46b2347d51ea780be0524aed8a05f8312fbabc95 (diff)
openrc configs: replace pacman-init initscript with a local.d script
and remove haveged from pkglist Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'configs/profile-openrc')
-rwxr-xr-xconfigs/profile-openrc/airootfs/etc/init.d/pacman-init30
-rwxr-xr-xconfigs/profile-openrc/airootfs/etc/local.d/pacman-init.start5
-rwxr-xr-xconfigs/profile-openrc/airootfs/root/customize_airootfs.sh21
-rw-r--r--configs/profile-openrc/packages.both1
4 files changed, 8 insertions, 49 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
diff --git a/configs/profile-openrc/airootfs/root/customize_airootfs.sh b/configs/profile-openrc/airootfs/root/customize_airootfs.sh
index 09e8fcd..d01a51c 100755
--- a/configs/profile-openrc/airootfs/root/customize_airootfs.sh
+++ b/configs/profile-openrc/airootfs/root/customize_airootfs.sh
@@ -18,23 +18,8 @@ sed -i 's/#\(HandleSuspendKey=\)suspend/\1ignore/' /etc/elogind/logind.conf
sed -i 's/#\(HandleHibernateKey=\)hibernate/\1ignore/' /etc/elogind/logind.conf
sed -i 's/#\(HandleLidSwitch=\)suspend/\1ignore/' /etc/elogind/logind.conf
-case $(uname -m) in
- x86_64) echo 'KEYS="archlinux parabola"' > /etc/conf.d/pacman-init
- ;;
- i686) echo 'KEYS="archlinux archlinux32 parabola"' > /etc/conf.d/pacman-init
- ;;
-esac
-
-useradd -m -p "" -g users -G "adm,audio,floppy,log,network,scanner,storage,optical,power,wheel,disk,sys" -s /usr/bin/zsh parabola
-
-services=(NetworkManager
- elogind
- dbus
- haveged
- pacman-init)
-
-for s in ${services[@]}; do
- rc-update add $s default
-done
+rc-update add dbus boot
+rc-update add elogind default
+rc-update add NetworkManager default
sed -i "s/_DATE_/$(date +%Y.%m.%d)/" /etc/motd
diff --git a/configs/profile-openrc/packages.both b/configs/profile-openrc/packages.both
index bd531f9..528250e 100644
--- a/configs/profile-openrc/packages.both
+++ b/configs/profile-openrc/packages.both
@@ -22,7 +22,6 @@ gpm-openrc
gptfdisk
grml-zsh-config
grub
-haveged-openrc
hdparm-openrc
irssi
iwd