From ebdc0b24d8d98f58d204c0c15cb1ec7fb2b8197a Mon Sep 17 00:00:00 2001 From: Vasilis van Gemert Date: Wed, 30 Jun 2021 18:35:19 +0200 Subject: [PATCH] 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. --- CAR INSTALL.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/CAR INSTALL.md b/CAR INSTALL.md index 062b6df5..b24c86c7 100644 --- a/CAR INSTALL.md +++ b/CAR INSTALL.md @@ -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. -- 2.47.2