Various file systems exported by the kernel are used to communicate to and from the kernel itself. These file systems are virtual in that no disk space is used for them. The content of the file systems resides in memory. Begin by creating directories onto which the file systems will be mounted.
1 2 3 4 5 |
|
Dev File System
1 2 3 4 |
|
Chroot into the System
1 2 3 4 5 6 |
|
-i
option will clear all environment variables of the chroot environment. Then ‘HOME’, ‘TERM’, ‘PS1’ and ‘PATH’ variables are set again.
Notice that ‘/tools/bin’ comes last in the PATH. This means that a temporary tool will no longer be used once its final version is installed. This occurs when the shell does not “remember” the locations of executed binaries—for this reason, hashing is switched off by passing the ‘+h’ option to bash.
Install the System Software from Source
The following list of programs needs to be installed.
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 |
|
Now we have all System Software installed. Next we should compile the kernel. See Compiling a Linux Kernel From Source post.