Skip to content
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

remaster_iso_functions: add trap to umount chroot bind mounts #3

Open
sundarnagarajan opened this issue May 20, 2017 · 0 comments
Open
Assignees

Comments

@sundarnagarajan
Copy link
Owner

When running for chroot target, a number of dirs are mounted (with --bind option). If the user presses CTRL-C or the program abends for any reason during this phase,:

  • Those directories remain mounted
  • The extract dir cannot be removed because of those mounts

Solution:

  • Setup a TRAP before entering the chroot
  • Do a umount -f in the trap
@sundarnagarajan sundarnagarajan self-assigned this May 20, 2017
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

No branches or pull requests

1 participant