Reboot After Install Inconsistent Behavior

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
User avatar
Posts: 10
Joined: Thu May 20, 2021 6:42 pm
Location: Los Angeles, CA

Reboot After Install Inconsistent Behavior

Post by vnzkay »

I'm working towards a truly handsfree/headless setup process (and then documenting it as a tutorial). This is the first in a series of questions I'll post here; the conclusion will hopefully be a streamlined, hands-free flash-/initialize-board process. Happy to share what I end up with.

Where would the cleanest "reboot-after-install" point be? In order to cleanly register a custom-hostname board on a network, I'd like to reboot it after the first-boot setup succeeds. Is there a good place to do that?

Adding a `reboot` at the end of works well for the ARM-64 bit image, but causes the ARM-32 bit image to restart the install process over.
User avatar
Posts: 4783
Joined: Sat Nov 16, 2019 12:49 am

Re: Reboot After Install Inconsistent Behavior

Post by Joulinar »

if I'm not mistaken, we had a similar request in the near past about the point where to perform an automated reboot on first install. But I could not remember the exact case.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
Site Admin
Posts: 2987
Joined: Sat Nov 18, 2017 6:21 pm

Re: Reboot After Install Inconsistent Behavior

Post by MichaIng »

Ah yes that is true. I actually wanted to change that already, done now: ... 190e24dc3b

As a workaround, do

Code: Select all

echo 2 > /boot/dietpi/.install_stage
in your
Post Reply