about summary refs log tree commit diff
path: root/core-services/05-misc.sh
Commit message (Collapse)AuthorAgeFilesLines
* Print message when seeding RNGJason A. Donenfeld2022-03-261-0/+1
|
* Use seedrng for seeding the random number generatorJason A. Donenfeld2022-03-251-2/+1
| | | | | | | | | | | | The RNG can't actually be seeded from a shell script, due to the reliance on ioctls. For this reason, the seedrng project provides a basic script meant to be copy and pasted into projects like void-runit and tweaked as needed: <https://git.zx2c4.com/seedrng/about/>. This commit imports it into void-runit and wires up the init scripts to call it. This also is a significant improvement over the current init script, which fails to remove seed files that have already been used, or to ratchet them forward.
* fix(urandom): avoid uninitialized read during bootCameron Nemo2019-10-031-1/+0
| | | | | | | | | Regenerating the stored seed was an attempt to prevent hard shutdowns from leading to seed reuse. Unfortunately, this practice depletes any entropy that was added by the seed. Furthermore on newer kernels which do not credit entropy added from userspace, the operation is often an uninitialized read of urandom.
* core-services/05-misc.sh: create utmp earlyLeah Neukirchen2019-09-061-0/+1
|
* core-services/05-misc.sh: log boot in wtmpLeah Neukirchen2019-09-061-0/+2
|
* urandom: don't seed/store in containersCameron Nemo2019-03-161-3/+5
|
* Don't output newline to /proc file when setting hostname.Christopher Brannon2015-11-111-1/+1
| | | | | | This breaks in certain combinations of echo command and standard library, notably musl and bash builtin echo, or coreutils echo + musl.
* Find out size of the saved random-seed via /proc/sys/kernel/random/poolsize. 20150511.1Juan RP2015-05-111-1/+1
| | | | | This is what the random(4) manual page recommends, and hopefully should improve entropy reading from /dev/{u,}random.
* add a newline by default to msg and msg_warn outputSören Tempel2015-03-221-5/+5
|
* warn if hostname wasn't setSören Tempel2015-03-211-4/+4
|
* Use read to retrieve the hostnameSören Tempel2015-03-101-1/+1
|
* core-services/05-misc.sh: initialize random seed earlier.Juan RP2014-08-291-4/+4
|
* core-services: do not need to be executable.Juan RP2014-08-071-0/+0
|
* Make core-services just shell snippets and source them from 1; idea from ↵Juan RP2014-08-071-4/+0
| | | | @chneukirchen.
* Added "core" services that are run from scripts on stage 1.Juan RP2014-08-071-0/+25
- /etc/runit/functions: contains common functions to be used in core-services. - /etc/runit/core-services: directory containing one-time tasks run in stage 1. - Added LXC container detection to disable some core services. This accidentally also fixes the issue of unicode not working in the active TTY from stage 1.