stages: 1/13-lzlib: Fix mismatch (provided) version
[dragora.git] / CHEATSHEET.md
blob2b05be061fbbfd594140aa31161be976ae8238d9
1 # Dragora's Cheat Sheet
3 ## Bootstrapping
5 Prerequisities:
7 - A working C compiler, system toolchain, utilities.
9 - Enough hard disk space (7GB+) for the whole process.
11 - A superuser account is needed to perform all the steps.
13 - Clone or sync the git repository.
15 - Obtain or sync the sources (tarballs).  See the *sources/README.md* file.
17 Bootstrapping from Debian systems:
19 `apt update && apt upgrade`
21 `apt install build-essential flex git lzip genisoimage texinfo unzip zlib1g zlib1g-dev liblz1 liblz-dev`
23 ### Instructions:
25 Creates a cross compiler for your native architecture:
27 `./bootstrap -s0 2>&1 | tee stage0-log.txt`
29 Prepare a temporary system using the recent cross compiler:
31 `./bootstrap -s1 2>&1 | tee stage1-log.txt`
33 Enter the temporary system:
35 `./enter-chroot`
37 Start replacing the temporary system with the final system:
39 `qi order /usr/src/qi/recipes/*.order | qi build -S -p -i - 2>&1 | tee build-log.txt`
41 Set custom modifications, like a password for the superuser:
43 `passwd root`
45 Exit from the temporal session (enter-chroot):
47 `exit`
49 Produce an ISO image from the Stage 2:
51 `./bootstrap -s2 2>&1 | tee stage2-log.txt`
53 Burn or emulate the (hybrid) ISO image at
54 *OUTPUT.bootstrap/stage2/cdrom/dragora-live.iso*.
56 Hints:
58 To speed up the build procedure multiple jobs can be passed to the compiler.<br/>
59 Just give the -j option to the *bootstrap* script and pass the same one to the<br/>
60 connected *qi* in the pipe.  Consider the value for -j taking into account the<br/>
61 number of processors + 1, for example `-j3`
64 ---
66 Under the terms of the GNU Free Documentation License,
67 http://www.gnu.org/licenses/fdl.html
69 Updated: 2020-09-07