Chapters about optimising boot time and about read-only

I added a chapter about disabling unnecessary services in order to decrease boot-time. And I added a short tip about read-only mode.
This commit is contained in:
Vasilis van Gemert
2021-06-30 18:35:19 +02:00
committed by GitHub
parent c19f697be2
commit ebdc0b24d8
+18
View File
@@ -193,6 +193,24 @@ denyinterfaces wlan0
```
From this point on, at least on the Raspberry Pi, if you reboot the machine, it will not reconnect to your network – instead, it will act as the WiFi base station you have configured with `hostapd` and `isc-dhcp-server`.
### Optimise startup time
There are quite a few services that are not necessary for this setup. Disabling them can increase startup time. Running these commands disables them:
````
sudo systemctl disable systemd-timesyncd.service
sudo systemctl disable keyboard-setup.service
sudo systemctl disable triggerhappy.service
sudo systemctl disable dhcpcd.service
sudo systemctl disable wpa_supplicant.service
sudo systemctl disable dphys-swapfile.service
sudo systemctl disable networking.service
````
### Read-only mode
Run `sudo raspi-config` and then choose `Performance Options` > `Overlay Filesystem` and choose to enable the overlay filesystem, and to set the boot partition to be write-protected.
### Ready
Install the Raspberry Pi in your car. It should be powered from a source that is switched off when you leave the car, otherwise the slight current drain will eventually flatten the car's battery.