summaryrefslogtreecommitdiff
path: root/configs/profile/root-image/etc
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2017-11-16 13:36:18 -0500
committerbill-auger <mr.j.spam.me@gmail.com>2018-01-01 00:53:17 -0500
commit52a395e05dfc6658ba227360726e754864c3ee81 (patch)
treeab435742d92a736993c8c1ec0044a2292b5e288c /configs/profile/root-image/etc
parent813621e21707cd08a604e256fe28e9df2e763eee (diff)
add openrc config
Diffstat (limited to 'configs/profile/root-image/etc')
-rw-r--r--configs/profile/root-image/etc/X11/Xwrapper.config2
-rw-r--r--configs/profile/root-image/etc/conf.d/agetty.tty111
-rw-r--r--configs/profile/root-image/etc/conf.d/hostname2
-rwxr-xr-xconfigs/profile/root-image/etc/init.d/pacman-init31
4 files changed, 46 insertions, 0 deletions
diff --git a/configs/profile/root-image/etc/X11/Xwrapper.config b/configs/profile/root-image/etc/X11/Xwrapper.config
new file mode 100644
index 0000000..7483aaf
--- /dev/null
+++ b/configs/profile/root-image/etc/X11/Xwrapper.config
@@ -0,0 +1,2 @@
+# Xorg.wrap configuation file
+needs_root_rights = yes
diff --git a/configs/profile/root-image/etc/conf.d/agetty.tty1 b/configs/profile/root-image/etc/conf.d/agetty.tty1
new file mode 100644
index 0000000..b7ff06d
--- /dev/null
+++ b/configs/profile/root-image/etc/conf.d/agetty.tty1
@@ -0,0 +1,11 @@
+# Set the baud rate of the terminal line
+baud="38400"
+
+# set the terminal type
+term_type="linux"
+
+# extra options to pass to agetty for this port
+agetty_options="--autologin root --noclear"
+
+# make agetty quiet
+#quiet="no"
diff --git a/configs/profile/root-image/etc/conf.d/hostname b/configs/profile/root-image/etc/conf.d/hostname
new file mode 100644
index 0000000..a701f0c
--- /dev/null
+++ b/configs/profile/root-image/etc/conf.d/hostname
@@ -0,0 +1,2 @@
+# Set to the hostname of this machine
+hostname="parabolaiso"
diff --git a/configs/profile/root-image/etc/init.d/pacman-init b/configs/profile/root-image/etc/init.d/pacman-init
new file mode 100755
index 0000000..b610683
--- /dev/null
+++ b/configs/profile/root-image/etc/init.d/pacman-init
@@ -0,0 +1,31 @@
+#!/usr/bin/openrc-run
+# Copyright (C) 2017 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
+ # in the background for a faster boot
+ if [ ! -d /etc/pacman.d/gnupg ]; then
+ ebegin "Starting Pacman keyring"
+ pacman-key --init &> /dev/null &&
+ pacman-key --populate archlinux parabola &> /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
+}