Debian Codegraph @

contrib/void/README.md

raw symbols SCIP
1 HowTo: Finit on Void Linux
2 ==========================
3
4 HowTo use Finit to boot an [Void Linux][] system. It is assumed that
5 the user has already installed make, a compiler, C library header files,
6 and other tools needed to build a GNU configure based project.
7
8 To start with you need to first install [libuEv][] and [libite][]. They
9 default to install to `/usr/local`, but unlike Debian and Ubuntu based
10 distros, Void's `pkg-config` does not look for libraries and header
11 files there. So the `PKG_CONFIG_LIBDIR` environment variable must be
12 used, or change the install prefix to `/usr`.
13
14 The bundled [build.sh](build.sh) script can be used to configure and
15 build finit:
16
17 void:~# cd finit
18 void:~/finit# ./contrib/void/build.sh
19
20 Then run the [install.sh](install.sh) script to install all necessary
21 files, including the sample `finit.conf` and `finit.d/*.conf` files.
22 More on that below.
23
24 void:~/finit# ./contrib/void/install.sh
25
26 The install script is (supposed to be) non-destructive by default, you
27 have to answer *Yes* twice to set up Finit as the system default init.
28 Pay close attention to the last question:
29
30 *** Install Finit as the system default Init (y/N)?
31
32 If you answer `No`, simply by pressing enter, you can change the symlink
33 yourself later on, to point to `finit` instead of `runit`:
34
35 void:~/finit# cd /sbin
36 void:/sbin# rm init
37 void:/sbin# ln -s finit init
38
39 Another option is to change the Grub defaults, in `/etc/default/grub`:
40
41 #GRUB_CMDLINE_LINUX_DEFAULT="loglevel=4 slub_debug=P page_poison=1"
42 GRUB_CMDLINE_LINUX_DEFAULT="loglevel=4 init=/sbin/finit"
43
44 Alternatively, you can simply modify the default Grub entry at boot, or
45 set up an alternative Grub entry to include:
46
47 linux /boot/vmlinuz-X.YY.Z ... init=/sbin/finit
48
49 If you modify a Grub configuration file, remember to run:
50
51 update-grub
52
53 Before rebooting, make sure to set up a [/etc/finit.conf](finit.conf),
54 and [/etc/finit.d/](finit.d/) for your services. Samples are included
55 in this directory. Notice the symlinks in `/etc/finit.d/`, which can be
56 managed by the operator at runtime using `initctl enable SERVICE`. You
57 can also use a standard [/etc/rc.local](rc.local) for one-shot tasks and
58 initialization like keyboard language etc.
59
60 [libuEv]: https://github.com/troglobit/libuev
61 [libite]: https://github.com/troglobit/libite
62 [Void Linux]: https://www.voidlinux.eu/