There are many many posts in these forums about having systemd startup problems. Search for those. There is also this one, that you might find VERY helpful which has a pointer to thagrol's excellent "Running a program at startup" guide: viewtopic.php?t=314455Hi folks, I'm writing a systemd service that I want to run it once when the raspberry PI boots, the service should run a bash script to allow TPM support, but whenever I turn the raspberry pi on I get
Quick summary: You need to capture the output from the script running and see what the heck is going on.
Secondly, why are you running apt update and apt upgrade at system startup like that, in a script that appears to be super-important for the system to boot up correctly?? Remove those and try again, while capturing the output using the information you learned by reading the "Running a program at startup" guide referenced above.
Statistics: Posted by bls — Sun Jul 14, 2024 2:25 pm