1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
5 | <!ENTITY site SYSTEM "../appendices/rc.site.script">
|
---|
6 | %general-entities;
|
---|
7 | ]>
|
---|
8 |
|
---|
9 | <sect1 id="ch-config-usage" revision="s6">
|
---|
10 | <?dbhtml filename="usage.html"?>
|
---|
11 |
|
---|
12 | <title>S6 Usage and Configuration</title>
|
---|
13 |
|
---|
14 | <para>*** Add more info about S6 here. ***</para>
|
---|
15 |
|
---|
16 | <para>Now setup some essential scripts for booting.</para>
|
---|
17 |
|
---|
18 | <!--
|
---|
19 | Following setup is taken from
|
---|
20 | https://skarnet.org/software/s6-linux-init/quickstart.html
|
---|
21 | It builds the required programs (init, reboot, ...).
|
---|
22 |
|
---|
23 | The system is bootable with this config, but it has
|
---|
24 | * only one tty (tty1)
|
---|
25 | * root-fs is mounted R/O
|
---|
26 | * no virtual filesystems (like /proc) are mounted
|
---|
27 | * messages breaks thru to console
|
---|
28 |
|
---|
29 | ... but it boots ;-)
|
---|
30 | -->
|
---|
31 | <para>Make sure that the configuration directory exists:</para>
|
---|
32 |
|
---|
33 | <screen><userinput>mkdir -p /etc/s6-linux-init</userinput></screen>
|
---|
34 |
|
---|
35 | <para>Setup a temporary directory:</para>
|
---|
36 |
|
---|
37 | <screen><userinput>tmpdir=$(mktemp -d)</userinput></screen>
|
---|
38 |
|
---|
39 | <para>Create essential programs and move them to a
|
---|
40 | directory representing the current setup:</para>
|
---|
41 |
|
---|
42 | <screen><userinput>s6-linux-init-maker -1 -G "/sbin/agetty 38400 tty1" $tmpdir
|
---|
43 | mv $tmpdir /etc/etc/s6-linux-init/current
|
---|
44 | </userinput></screen>
|
---|
45 |
|
---|
46 | <para>Install the essential programs in the file system:</para>
|
---|
47 |
|
---|
48 | <screen><userinput>cp -av /etc/etc/s6-linux-init/current/bin/* /sbin/</userinput></screen>
|
---|
49 |
|
---|
50 | </sect1>
|
---|