summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* vlogger: add default tagDuncaen2018-06-221-4/+1
|
* vlogger: a couple of bugfixes.Christopher Brannon2018-06-221-2/+3
| | | | | | | | | | | * Don't store the return value of getopt in a char. Storing in a char and comparing against -1 breaks on ARM, where char is unsigned. * The line argument to getline should point at a NULL char *. Otherwise, getline will treat *line as a pointer to an allocated buffer. With a little extra work, we could reuse the buffer, but always calling getline with *line == NULL is safe. Closes: #2 [via git-merge-pr]
* vlogger.8: reference runit(8) 20180620Duncaen2018-06-201-1/+3
|
* vlogger: style changes/cleanupDuncaen2018-06-201-23/+15
|
* vlogger.8: fix mdoc warningsDuncaen2018-06-201-3/+3
|
* vlogger: remove on make cleanDuncaen2018-06-201-1/+1
|
* vlogger: Fix symlinked ./run handling, make sure tag is initialized.Christopher Brannon2018-06-201-6/+25
| | | | | | | | | If vlogger is symlinked to foo/log/run for some service foo, it's invoked as ./run with $SERVICEDIR/foo/log as the cwd. So extract the service name from cwd if argv[0] is ./run. Also tag is initialized to the generic "vlogger" if it is not given on the command line and servicename couldn't be extracted from cwd.
* vlogger: exit if exec failsDuncaen2018-06-201-1/+4
|
* vlogger: strdup error checkDuncaen2018-06-201-4/+6
|
* vlogger: run /etc/vlogger with the same argv[0]Duncaen2018-06-201-2/+4
|
* vlogger: dont define _* namespaceDuncaen2018-06-201-1/+1
|
* Add vlogger(8)Duncaen2018-06-204-0/+252
| | | | | | | | | | | | | | | | | vlogger(8) is a alternative to logger(1), by default it sends messages from stdin to syslog. The main reason to replace logger(1) is, that logger only connects once to the syslog socket in default mode and puts all messages into the void if syslog is not running at the time. logger(1) has a new `--socket-errors=on` mode which would work, but some void uses don't use syslog at all and in this case the log service would constantly restart. As a bonus vlogger(8) looks for /etc/vlogger and if its executable it just executes it and is replaced by it. This can be used to avoid syslog and just write all logs to files with svlogd(8) as example, without having to edit all log services.
* Merge pull request #64 from dne/patch-1Enno Boland2018-06-131-1/+1
|\ | | | | core-services/01-static-devnodes.sh: Honour modprobe blacklists
| * core-services/01-static-devnodes.sh: Honour modprobe blacklistsDaniel Néri2017-02-121-1/+1
| |
* | Merge pull request #76 from Aloz1/crypt_no_devices_found 20171102Enno Boland2017-11-011-1/+1
|\ \ | | | | | | Fix "No devices found" error during shutdown
| * | Fix "No devices found" error during shutdownAloz12017-10-151-1/+1
| | | | | | | | | | | | | | | | | | | | | This fixes an issue introduced by voidlinux/void-runit#75 whereby dmsetup returns "No devices found" on shutdown on systems with no encrypted volumes, which is then interpreted as integral vaules "No", "devices" and "found", resulting in Illegal number errors.