Skip to content

Ensure Armbian system is always unmounted #2963

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 25, 2025

Conversation

hboyd2003
Copy link
Contributor

This pull request reworks the exit & error logic around the chroot command in recompile to ensure that the Armbian system is always unmounted before the script exits.

Improvements to exit & error logic:

  • Encapsulated the logic for unmounting the Armbian system into unmount_armbian helper function.
  • Integrated unmount_armbian before exiting with an error message when chroot fails.
  • Added a trap for SIGINT (CTRL + C) that calls unmount_armbian.

@ophub ophub merged commit 958dc76 into ophub:main May 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants