Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
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:
-
Check
wrapup.shExecution:
Ensure that thewrapup.shscript 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 -
Remount the Medium:
If yourwrapup.shscript 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 -
Verify
autoinstallProperty:
Double-check that theautoinstallproperty in yourimage.jsonis set totrue. It should look something like this:{ "config_format": 1, "autoinstall": true, ... } -
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 -
Ensure Proper Script Permissions:
Make sure that thewrapup.shscript has the correct permissions to be executed. You can set the permissions using:chmod +x wrapup.sh -
Test Reboot Command Manually:
Manually test thereboot -fcommand 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.