I have minimalistic headless setup with base image and only shairport + hostapd installed. I shut down system by cutting power and after next boot it reboots and boot second time. How to avoid it and force to boot only once? Other distribution I used boots only once after dirty shutdown. My aim is headless no ups with minimum boot time to use in car. I do not need logs etc in my system and do not care about sd card life time. Thanks.
The same applies to your post, it doesn’t actually contain any information about your system. We don’t know what kind of board you are using or anything else.
how do you know that? how does it make you notice it?
This is not normal behaviour, in fact it should not occur at all. So there must be a reason for this behaviour.
but we need your logs, otherwise it is not possible to help.
Hardware is new Raspberry PI Zero 2 W.
I have usb logger and hdmi monitor attached. Both shows (no power input, no picture and system log on screen shows that system is restarting) that unit reboots in 10 seconds after first boot.
I made fresh sd card with latest image DietPi_RPi234-ARMv8-Bookworm from dietpi site. This bare system with all updates and only FULL log option in dietpi-config behave the same - reboots after 10 seconds after first login prompt.
Did log clear via journalctl --flush --rotate --vacuum-time=1s, reboot via cutting power and wait system to settle. Final log is attached.
log.txt (50.2 KB)
P.S Dietpi is just great. With all lightness and configuration possibilities I really enjoy it.