Skip to content

zfs-chroot: unmount everything under chroot mountpoint #737

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zdykstra
Copy link
Member

@zdykstra zdykstra commented Apr 1, 2025

Instead of manually tracking everything mounted under the chroot, check mounts and sort the list by the directory depth. Given directory depths of 10,9,8, assume that any directories at the same depth can be unmounted in any order.

@zdykstra zdykstra force-pushed the deckchairs-on-the-titanic branch 3 times, most recently from af2a484 to d1ca5e9 Compare April 1, 2025 07:00
Instead of manually tracking everything mounted under the chroot, check mounts and sort the list by the directory depth. Given directory depths of 10,9,8, assume that any directories at the same depth can be unmounted in any order.
@zdykstra zdykstra force-pushed the deckchairs-on-the-titanic branch from d1ca5e9 to 3191bb7 Compare April 17, 2025 18:21
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.

1 participant