Changeset 57c4c384


Ignore:
Timestamp:
08/07/2022 06:29:37 PM (21 months ago)
Author:
Thomas Trepl (Moody) <thomas@…>
Branches:
s6-init
Children:
f3b0930
Parents:
193913e
Message:

Add essential program build (init, poweroff, ...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter09/usage6.xml

    r193913e r57c4c384  
    1212  <title>S6 Usage and Configuration</title>
    1313
    14   <para>Add more info about S6 here.</para>
     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, ...).
    1522 
     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
     43mv $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
    1650</sect1>
Note: See TracChangeset for help on using the changeset viewer.