summaryrefslogtreecommitdiff
path: root/configs/profile-openrc/root-image/etc
diff options
context:
space:
mode:
authorDavid P <megver83@openmailbox.org>2017-09-29 14:18:19 -0300
committerDavid P <megver83@openmailbox.org>2017-09-29 14:18:19 -0300
commitf5d62fdcd4a6d351fa25af3b3e443ba4de67a802 (patch)
treeda3bb909024f145454fb7ff460931bbb8c4311af /configs/profile-openrc/root-image/etc
parent50a0dc41d6edbe36d081bcd0fab7d79f2a0d116a (diff)
Added configs/profile-openrc
Diffstat (limited to 'configs/profile-openrc/root-image/etc')
-rw-r--r--configs/profile-openrc/root-image/etc/conf.d/agetty.tty111
-rw-r--r--configs/profile-openrc/root-image/etc/conf.d/hostname2
-rw-r--r--configs/profile-openrc/root-image/etc/fstab0
-rwxr-xr-xconfigs/profile-openrc/root-image/etc/init.d/pacman-init30
-rw-r--r--configs/profile-openrc/root-image/etc/locale.conf1
-rw-r--r--configs/profile-openrc/root-image/etc/motd14
-rw-r--r--configs/profile-openrc/root-image/etc/pam.d/su6
-rw-r--r--configs/profile-openrc/root-image/etc/sudoers.d/g_wheel1
-rw-r--r--configs/profile-openrc/root-image/etc/udev/rules.d/81-dhcpcd.rules1
9 files changed, 66 insertions, 0 deletions
diff --git a/configs/profile-openrc/root-image/etc/conf.d/agetty.tty1 b/configs/profile-openrc/root-image/etc/conf.d/agetty.tty1
new file mode 100644
index 0000000..b7ff06d
--- /dev/null
+++ b/configs/profile-openrc/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-openrc/root-image/etc/conf.d/hostname b/configs/profile-openrc/root-image/etc/conf.d/hostname
new file mode 100644
index 0000000..a701f0c
--- /dev/null
+++ b/configs/profile-openrc/root-image/etc/conf.d/hostname
@@ -0,0 +1,2 @@
+# Set to the hostname of this machine
+hostname="parabolaiso"
diff --git a/configs/profile-openrc/root-image/etc/fstab b/configs/profile-openrc/root-image/etc/fstab
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/configs/profile-openrc/root-image/etc/fstab
diff --git a/configs/profile-openrc/root-image/etc/init.d/pacman-init b/configs/profile-openrc/root-image/etc/init.d/pacman-init
new file mode 100755
index 0000000..ccc884c
--- /dev/null
+++ b/configs/profile-openrc/root-image/etc/init.d/pacman-init
@@ -0,0 +1,30 @@
+#!/usr/bin/openrc-run
+# Copyright (C) 2017 Parabola Project
+# Copyright 2013-2017 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 "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
+}
diff --git a/configs/profile-openrc/root-image/etc/locale.conf b/configs/profile-openrc/root-image/etc/locale.conf
new file mode 100644
index 0000000..01ec548
--- /dev/null
+++ b/configs/profile-openrc/root-image/etc/locale.conf
@@ -0,0 +1 @@
+LANG=en_US.UTF-8
diff --git a/configs/profile-openrc/root-image/etc/motd b/configs/profile-openrc/root-image/etc/motd
new file mode 100644
index 0000000..a126999
--- /dev/null
+++ b/configs/profile-openrc/root-image/etc/motd
@@ -0,0 +1,14 @@
+
+===============================================================================
+
+ Parabola live media _DATE_
+
+ To install Parabola, the system must be connected to the internet.
+ For instructions, enter this command:
+ lynx network.html
+
+ Press the function keys while holding Alt to switch virtual terminals.
+ This allows entering commands without closing lynx.
+
+===============================================================================
+
diff --git a/configs/profile-openrc/root-image/etc/pam.d/su b/configs/profile-openrc/root-image/etc/pam.d/su
new file mode 100644
index 0000000..a291042
--- /dev/null
+++ b/configs/profile-openrc/root-image/etc/pam.d/su
@@ -0,0 +1,6 @@
+#%PAM-1.0
+auth sufficient pam_rootok.so
+auth sufficient pam_wheel.so trust use_uid
+auth required pam_unix.so
+account required pam_unix.so
+session required pam_unix.so
diff --git a/configs/profile-openrc/root-image/etc/sudoers.d/g_wheel b/configs/profile-openrc/root-image/etc/sudoers.d/g_wheel
new file mode 100644
index 0000000..8c45359
--- /dev/null
+++ b/configs/profile-openrc/root-image/etc/sudoers.d/g_wheel
@@ -0,0 +1 @@
+%wheel ALL=(ALL) NOPASSWD: ALL
diff --git a/configs/profile-openrc/root-image/etc/udev/rules.d/81-dhcpcd.rules b/configs/profile-openrc/root-image/etc/udev/rules.d/81-dhcpcd.rules
new file mode 100644
index 0000000..970da69
--- /dev/null
+++ b/configs/profile-openrc/root-image/etc/udev/rules.d/81-dhcpcd.rules
@@ -0,0 +1 @@
+ACTION=="add", SUBSYSTEM=="net", ENV{SYSTEMD_WANTS}="dhcpcd@$name.service"