summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
* Activate mdadm arrays on bootAntonio Gurgel2022-03-271-0/+5
|
* Print message when seeding RNGJason A. Donenfeld2022-03-262-0/+2
|
* core-services/00-pseudofs: mount /sys/firmware/efi/efivars when appropriateLeah Neukirchen2022-03-251-0/+4
|
* Use seedrng for seeding the random number generatorJason A. Donenfeld2022-03-256-4/+446
| | | | | | | | | | | | 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 missing dashTristan2021-08-141-1/+1
| | | Fixes #77
* Support pure v2 cgroup mounts 20210314ap4y2021-03-132-4/+37
| | | | | | | | | | | | | Some of the tooling that rely on cgroups (notably podman, runc and crun) enable cgroup2 mode only if /sys/fs/cgroup has a v2 magic number. This commit introduces configuration option that controls the way cgroup is mounted, 3 modes are supported: - hybrid: current mode with v1 and v2 mounted - unified: v2 only mode - legacy: v1 only mode This is modeled after OpenRC: https://github.com/OpenRC/openrc/blob/72df51e17ba0e1a0f94451b4bbfb338288c4625c/init.d/cgroups.in#L121-L129
* vlogger: behave like logger(1) if argv[0] is "logger"Duncan Overbruck2021-03-132-8/+17
|
* vlogger: pass empty tag to /etc/vlogger if tag is NULLDuncan Overbruck2021-03-131-1/+1
|
* halt: switch __progname tests to use strncmpColin Booth2021-03-101-3/+3
| | | | | | | | | | | | | The pending change to allow for alternate init power controls requires that the halt binary provided here be somewhat less strict in its argv[0] matching in order to allow for halt, reboot, and poweroff to still function in situations where the binary has been renamed. This switches from strcmp(__progname, "string") to strncmp(__progname, "string", len), where len is the name of the power command sans any suffix. Signed-off-by: Colin Booth <colin@heliocat.net>
* core-services/03-filesystems.sh: respect auto_activation_volume_listAndrew Benson2021-02-121-2/+2
| | | | Closes #64.
* vlogger: default to daemon.notice if linked as runit log serviceDuncan Overbruck2021-02-122-1/+7
|
* services/agetty-generic: use chpst -P instead of setsidColin Booth2021-02-121-1/+1
| | | | | | | | | | | | | The setsid program has a surprise gotcha of backgrounding a process if it already happens to be the session leader. This is ok for runit which never sets the service as a session leader but does not work with other supervisors which might. chpst provides the same setsid(2) functionality without also having the gotcha. Be aware that chpst has issues around gidlist squashing when using the -u or -U options without explicit passing. This behavior is not triggered in this case since chpst is being run as root and not being asked to drop privileges.
* Use global substitution on commas in modules-loadneeshy2021-01-171-1/+1
| | | | Without this only the first occurrence is replaced
* core-services/03-filesystems.sh: load keys as necessary when mountingAndrew J. Hesford2021-01-031-1/+1
|
* zzz: suspend is S1Leah Neukirchen2020-10-012-2/+2
|
* rc.conf: add note recommending /etc/localtimeÉrico Rolim2020-07-281-1/+7
| | | | | Recommend users to symlink their timezone to /etc/localtime instead of setting TZ in /etc/rc.conf. List disadvantages of setting it in rc.conf.
* ctrlaltdel: trigger a reboot properly. 20200720Érico Rolim2020-07-201-1/+4
| | | | | | | /run/runit/{stopit,reboot} should have their perms set to 100 by ctrlaltdel, before runit signals itself with SIGCONT, in order to trigger a reboot. This script can be changed by a user to perform different actions. The comments in it explain what each file is for.
* 3: remove /run/runit/reboot handling.Érico Rolim2020-07-201-4/+0
| | | | | | | | runit uses the permissions in the /etc/runit/reboot file to determine whether it's going to perform a halt or reboot action. This conditional in 3 meant that touching the reboot file, even with 000 perms, would lead to a reboot, which goes agains what is expected according to the runit documentation.
* 1: only create /run/runit directory.Érico Rolim2020-07-201-2/+4
| | | | | | | | | | The 100 permission in /run/runit/stopit made it so that signaling runit with SIGCONT would shut the system down. To achieve the correct behavior, we should create the stopit and reboot files with 000 perms, and allow their permissions to be set correctly by calls to `init 0` or `init 6` or by /etc/runit/ctrlaltdel. 1
* core-services/03-filesystems.sh: initialize ZFS even with no cachefileAndrew J. Hesford2020-07-171-3/+8
|
* crypt.awk: support PARTUUID in /etc/crypttabAndrew J. Hesford2020-07-141-1/+1
|
* core-services/00-pseudofs.sh: mount cgroup v2 unified file systemAndrew J. Hesford2020-07-121-0/+4
|
* vlogger.8: fix typojacereda2020-01-231-1/+1
|
* Merge pull request #13 from josephg5/patch-3Juan RP2019-12-281-1/+1
|\ | | | | Update README.md
| * Update README.mdJoseph George2018-11-111-1/+1
| | | | | | list not the link, but inside the linked dir.
* | Merge pull request #26 from Duncaen/vlogger-loggerJuan RP2019-12-282-19/+45
|\ \ | | | | | | Vlogger
| * | vlogger: force to use syslog if message arguments are givenDuncan Overbruck2019-08-252-11/+32
| | |
| * | vlogger.8: fix -f descriptionDuncan Overbruck2019-08-251-1/+3
| | |
| * | vlogger: no need to duplicate the tag name from service pathDuncan Overbruck2019-08-251-1/+1
| | |
| * | vlogger: fix uninitialized value warnings found with clang scan-buildDuncan Overbruck2019-08-251-1/+1
| | |
| * | vlogger: use the same defaults as logger(1)Duncan Overbruck2019-08-252-5/+8
| | |
* | | Merge pull request #30 from CameronNemo/urandomJuan RP2019-12-281-1/+0
|\ \ \ | | | | | | | | fix(urandom): avoid uninitialized read during boot
| * | | 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.
* | | | Merge pull request #31 from CameronNemo/sysctloctJuan RP2019-12-281-5/+9
|\ \ \ \ | | | | | | | | | | fix(sysctl): behave more like sysctl --system
| * | | | fix(sysctl): behave more like sysctl --systemCameron Nemo2019-10-031-5/+9
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Loading of sysctl.d directories should follow the same ordering and overriding rules as xbps, modules-load, and most importantly, `sysctl --system`. This change ensures proper ordering of files loaded by building the selected files then operating on them, and it allows for masking system level configuration from /etc and even /run.
* / / / services: add agetty services for hvc0 and hvsi0q662019-10-218-0/+17
|/ / / | | | | | | | | | | | | | | | | | | These are used for virtual terminal/serial console on some hypervisors (Xen) as well as many POWER based machines (the OPAL firmware emulates these for serial as the OS has no physical access to that).
* | | halt: forgotten include for musl 20190906Leah Neukirchen2019-09-061-0/+1
| | |
* | | core-services/05-misc.sh: create utmp earlyLeah Neukirchen2019-09-062-1/+1
| | |
* | | halt: styleLeah Neukirchen2019-09-061-5/+5
| | |
* | | halt: also update utmpLeah Neukirchen2019-09-061-0/+11
| | |
* | | core-services/05-misc.sh: log boot in wtmpLeah Neukirchen2019-09-062-1/+3
| | |
* | | halt: add support for wtmpLeah Neukirchen2019-09-062-10/+60
|/ / | | | | | | | | | | This implements -w and -d. Also add -B to create boot-time wtmp entries.
* | urandom: don't seed/store in containersCameron Nemo2019-03-162-5/+9
| |
* | functions: add missing new line in msg_warnYpnose2019-01-151-1/+1
|/
* Makefile: actually install vlogger 20180623Duncaen2018-06-231-0/+1
|
* vlogger: fix exit statusDuncaen2018-06-231-1/+1
|
* vlogger: add message argument for POSIX logger compatibilityDuncaen2018-06-232-2/+38
|
* vlogger: use static buffer and add -f flagDuncaen2018-06-222-25/+30
|
* vlogger: pass level and facility to /etc/vloggerDuncaen2018-06-222-3/+17
|
* vlogger: add logger(1) compatible -s and -i flag, and -S to force syslogDuncaen2018-06-222-7/+36
|