Tezi Auto Reboot feature not working

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


It sounds like you’ve correctly set up the autoinstall property in your image.json and added the reboot -f command in your wrapup.sh script. However, the issue you’re experiencing where the system does not reboot automatically could be due to a few reasons. Here are some steps to troubleshoot and ensure the auto-reboot feature works as expected:

  1. Check wrapup.sh Execution:
    Ensure that the wrapup.sh script is being executed correctly. You can add some debug statements in the script to log its execution. For example:

    # wrapup.sh
    echo "Wrapup script started" > /var/volatile/tezi_wrapup.log
    reboot -f
    echo "Reboot command issued" >> /var/volatile/tezi_wrapup.log
    
  2. Remount the Medium:
    If your wrapup.sh script is located on a removable medium (like a USB stick), ensure that the medium is remounted in read-write mode before writing to it. By default, it is mounted in read-only mode. You can remount it as follows:

    # wrapup.sh
    mount -o remount,rw /media/sdX1
    echo "Wrapup script started" > /media/sdX1/tezi_wrapup.log
    reboot -f
    echo "Reboot command issued" >> /media/sdX1/tezi_wrapup.log
    
  3. Verify autoinstall Property:
    Double-check that the autoinstall property in your image.json is set to true. It should look something like this:

    {
      "config_format": 1,
      "autoinstall": true,
      ...
    }
    
  4. Check for Errors in Logs:
    Access the serial console and check the logs for any errors that might indicate why the reboot is not happening. You can view the log file using:

    cat /var/volatile/tezi.log
    
  5. Ensure Proper Script Permissions:
    Make sure that the wrapup.sh script has the correct permissions to be executed. You can set the permissions using:

    chmod +x wrapup.sh
    
  6. Test Reboot Command Manually:
    Manually test the reboot -f command on the device to ensure it works as expected. This will help verify that the command itself is not the issue.

If after these steps the issue persists, please provide any error messages or additional logs that might help in diagnosing the problem further.

Please, also check if these links can help you solve your problem:

Toradex Easy Installer Configuration Files | Toradex Developer Center.