File: README.md

package info (click to toggle)
finit 4.14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,216 kB
  • sloc: ansic: 17,060; sh: 6,281; makefile: 532
file content (62 lines) | stat: -rw-r--r-- 2,392 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
HowTo: Finit on Void Linux
==========================

HowTo use Finit to boot an [Void Linux][] system.  It is assumed that
the user has already installed make, a compiler, C library header files,
and other tools needed to build a GNU configure based project.

To start with you need to first install [libuEv][] and [libite][].  They
default to install to `/usr/local`, but unlike Debian and Ubuntu based
distros, Void's `pkg-config` does not look for libraries and header
files there.  So the `PKG_CONFIG_LIBDIR` environment variable must be
used, or change the install prefix to `/usr`.

The bundled [build.sh](build.sh) script can be used to configure and
build finit:

    void:~# cd finit
    void:~/finit# ./contrib/void/build.sh

Then run the [install.sh](install.sh) script to install all necessary
files, including the sample `finit.conf` and `finit.d/*.conf` files.
More on that below.

    void:~/finit# ./contrib/void/install.sh

The install script is (supposed to be) non-destructive by default, you
have to answer *Yes* twice to set up Finit as the system default init.
Pay close attention to the last question:

    *** Install Finit as the system default Init (y/N)?

If you answer `No`, simply by pressing enter, you can change the symlink
yourself later on, to point to `finit` instead of `runit`:

    void:~/finit# cd /sbin
    void:/sbin# rm init
    void:/sbin# ln -s finit init

Another option is to change the Grub defaults, in `/etc/default/grub`:

    #GRUB_CMDLINE_LINUX_DEFAULT="loglevel=4 slub_debug=P page_poison=1"
    GRUB_CMDLINE_LINUX_DEFAULT="loglevel=4 init=/sbin/finit"

Alternatively, you can simply modify the default Grub entry at boot, or
set up an alternative Grub entry to include:

    linux /boot/vmlinuz-X.YY.Z ... init=/sbin/finit

If you modify a Grub configuration file, remember to run:

    update-grub

Before rebooting, make sure to set up a [/etc/finit.conf](finit.conf),
and [/etc/finit.d/](finit.d/) for your services.  Samples are included
in this directory.  Notice the symlinks in `/etc/finit.d/`, which can be
managed by the operator at runtime using `initctl enable SERVICE`.  You
can also use a standard [/etc/rc.local](rc.local) for one-shot tasks and
initialization like keyboard language etc.

[libuEv]: https://github.com/troglobit/libuev
[libite]: https://github.com/troglobit/libite
[Void Linux]: https://www.voidlinux.eu/