This project is awesome and I can't thank you enough for also providing the patched Raspberry Pi OS images. I have no understanding why something like this isn't in the official images since years, and is still being refused to be added.
While loving raspberian-firstboot, I'm fighting with rebooting the system after executing my firstboot.sh script. I assume this could be a generally useful case, reboot after setup.
The issue is that when we just invoke reboot shutdown -r now, the system reboots without completing systemd's firstboot.service. Hence the firstboot.sh file doesn't get removed and will be executed again.
All my attempts to use a delayed reboot with something like
nohup sh -c "sleep 3 && touch /boot/reboot && reboot" > /dev/null 2>&1 &
setsid sh -c "sleep 3 && touch /boot/reboot && reboot" > /dev/null 2>&1 &
failed. The commands don't seem to be executed.
The only thing that worked is shutdown -r +1, but that takes 1 full minute to reboot. 1 minute is the smallest time unit, unfortunately.
Is there anything that can be done about making it possible to reboot after successful script execution?
This project is awesome and I can't thank you enough for also providing the patched Raspberry Pi OS images. I have no understanding why something like this isn't in the official images since years, and is still being refused to be added.
While loving
raspberian-firstboot, I'm fighting with rebooting the system after executing myfirstboot.shscript. I assume this could be a generally useful case, reboot after setup.The issue is that when we just invoke
rebootshutdown -r now, the system reboots without completingsystemd'sfirstboot.service. Hence thefirstboot.shfile doesn't get removed and will be executed again.All my attempts to use a delayed reboot with something like
nohup sh -c "sleep 3 && touch /boot/reboot && reboot" > /dev/null 2>&1 &setsid sh -c "sleep 3 && touch /boot/reboot && reboot" > /dev/null 2>&1 &failed. The commands don't seem to be executed.
The only thing that worked is
shutdown -r +1, but that takes 1 full minute to reboot. 1 minute is the smallest time unit, unfortunately.Is there anything that can be done about making it possible to reboot after successful script execution?