RaspberryPi OS 32bit desktop install (2nd Nov 2022) PROCESS UPDATE #145
Description
Following https://github.com/openenergymonitor/EmonScripts/blob/master/install/rpi-install.md.
5. cmdline.txt does not contain the line init=/usr/lib/raspi-config/init_resize.sh it instead contains init=/usr/lib/raspberrypi-sys-mods/firstboot. I removed that line instead.
9. A slightly different procedure is required here, rather than copying cmdline2.txt back in place of cmdline.txt we need to add the lineinit=/usr/lib/raspi-config/init_resize.sh just after the quiet entry.
wget https://raw.githubusercontent.com/openenergymonitor/EmonScripts/stable/install/init_resize.sh
chmod +x init_resize.sh
sudo mv init_resize.sh /usr/lib/raspi-config/init_resize.sh
then:
sudo nano /boot/cmdline.txt
the content should look like this after adding the init line:
console=serial0,115200 console=tty1 root=PARTUUID=8e747a6b-02 rootfstype=ext4 fsck.repair=yes rootwait quiet init=/usr/lib/raspi-config/init_resize.sh splash plymouth.ignore-serial-consoles
Save and exit nano, then reboot:
sudo reboot
By not running the new firstboot script we may well be missing some important steps here.. NEEDS INVESTIGATION
Continue with installation process as normal from this point.
I choose to reboot after the system update, that may not be needed but it's probably safer to do so.
Continue install after update with:
cd /opt/openenergymonitor/EmonScripts/install
./main.sh
Enter 'n' for review config and 'n' for reboot the 2nd time around.
Otherwise this completes OK! (Though may need a second reboot if emonhub is not running)