diff options
author | David P <megver83@openmailbox.org> | 2017-09-29 14:18:19 -0300 |
---|---|---|
committer | David P <megver83@openmailbox.org> | 2017-09-29 14:18:19 -0300 |
commit | f5d62fdcd4a6d351fa25af3b3e443ba4de67a802 (patch) | |
tree | da3bb909024f145454fb7ff460931bbb8c4311af /configs/profile-openrc/root-image/etc | |
parent | 50a0dc41d6edbe36d081bcd0fab7d79f2a0d116a (diff) |
Added configs/profile-openrc
Diffstat (limited to 'configs/profile-openrc/root-image/etc')
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 @@ + +[01;34m=============================================================================== + + [01;36mParabola live media _DATE_[00;37m + + To install Parabola, the system must be connected to the internet. + For instructions, enter this command: + [01;37mlynx network.html[00;37m + + Press the function keys while holding Alt to switch virtual terminals. + This allows entering commands without closing lynx. + +[01;34m=============================================================================== +[00;37m 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" |