##// END OF EJS Templates
Added to README: Understanding the script
drtyhlpr -
r64:80185bd93dd9
parent child
Show More
@@ -123,7 +123,7 Install Xorg open-source X Window System.
123 ##### `ENABLE_WM`=""
123 ##### `ENABLE_WM`=""
124 Install a user defined window manager for the X Window System. To make sure all X related package dependencies are getting installed `ENABLE_XORG` will automatically get enabled if `ENABLE_WM` is used. The `rpi2-gen-image.sh` script has been tested with the following list of window managers: `blackbox`, `openbox`, `fluxbox`, `jwm`, `dwm`, `xfce4`, `awesome`.
124 Install a user defined window manager for the X Window System. To make sure all X related package dependencies are getting installed `ENABLE_XORG` will automatically get enabled if `ENABLE_WM` is used. The `rpi2-gen-image.sh` script has been tested with the following list of window managers: `blackbox`, `openbox`, `fluxbox`, `jwm`, `dwm`, `xfce4`, `awesome`.
125
125
126 #### Advanced sytem features:
126 #### Advanced system features:
127 ##### `ENABLE_MINBASE`=false
127 ##### `ENABLE_MINBASE`=false
128 Use debootstrap script variant `minbase` which only includes essential packages and apt. This will reduce the disk usage by about 65 MB.
128 Use debootstrap script variant `minbase` which only includes essential packages and apt. This will reduce the disk usage by about 65 MB.
129
129
@@ -159,6 +159,36 Build and install the latest RPi2 linux kernel. Currently only the default RPi2
159 ##### `KERNEL_HEADERS`=true
159 ##### `KERNEL_HEADERS`=true
160 If true, also install kernel headers with built kernel.
160 If true, also install kernel headers with built kernel.
161
161
162 ## Understanding the script
163 The functions of this script that are required for the different stages of the bootstrapping are split up into single files located inside the `bootstrap.d` directory. During the bootstrapping every script in this directory gets executed in lexicographical order:
164
165 | Script | Description |
166 | --- | --- |
167 | `10-bootstrap.sh` | Debootstrap basic system |
168 | `11-apt.sh` | Setup APT repositories |
169 | `12-locale.sh` | Setup Locales and keyboard settings |
170 | `13-kernel.sh` | Build and install RPi2 Kernel |
171 | `20-networking.sh` | Setup Networking |
172 | `21-firewall.sh` | Setup iptables Firewall |
173 | `30-security.sh` | Setup users and security settings |
174 | `31-logging.sh` | Setup logging |
175 | `41-uboot.sh` | Build and Setup Uboot |
176 | `42-fbturbo.sh` | Buld and Setup fbturbo Xorg driver |
177 | `50-firstboot.sh` | First boot actions |
178
179 All the required configuration files that will be copied to the generated OS image are located inside the `files` directory. It is not recommended to modify these configuration files manually.
180
181 | Directory | Description |
182 | --- | --- |
183 | `boot` | Boot and RPi2 configuration files |
184 | `firstboot` | Scripts that get executed on first boot |
185 | `iptables` | Firewall configuration files |
186 | `modprobe.d` | Kernel Module Blacklist configuration |
187 | `mount` | Fstab configuration |
188 | `network` | Networking configuration files |
189 | `sysctl.d` | Swapping and Network Hardening configuration |
190 | `xorg` | fbturbo Xorg driver configuration |
191
162 ## Logging of the bootstrapping process
192 ## Logging of the bootstrapping process
163 All information related to the bootstrapping process and the commands executed by the `rpi2-gen-image.sh` script can easily be saved into a logfile. The common shell command `script` can be used for this purpose:
193 All information related to the bootstrapping process and the commands executed by the `rpi2-gen-image.sh` script can easily be saved into a logfile. The common shell command `script` can be used for this purpose:
164
194
General Comments 0
Vous devez vous connecter pour laisser un commentaire. Se connecter maintenant