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

destroy script does not unmount if canonical path does not match #40

Open
pelepelin opened this issue Jan 18, 2023 · 0 comments
Open

destroy script does not unmount if canonical path does not match #40

pelepelin opened this issue Jan 18, 2023 · 0 comments

Comments

@pelepelin
Copy link

destroy script does not canonicalize script path properly and so mount points are incorrectly filtered out.

root@router:/tmp/mnt/Sea2T/root-home/alpine-chroot-install# ../alpine3/destroy 
If you want to remove /mnt/Sea2T/root-home/alpine3 directory, run: ../alpine3/destroy --remove
root@router:/tmp/mnt/Sea2T/root-home/alpine-chroot-install# /mnt/Sea2T/root-home/alpine3/destroy
If you want to remove /mnt/Sea2T/root-home/alpine3 directory, run: /mnt/Sea2T/root-home/alpine3/destroy --remove
root@router:/tmp/mnt/Sea2T/root-home/alpine-chroot-install# /tmp/mnt/Sea2T/root-home/alpine3/destroy
Unmounting /tmp/mnt/Sea2T/root-home/alpine3/sys/kernel/debug
Unmounting /tmp/mnt/Sea2T/root-home/alpine3/sys
Unmounting /tmp/mnt/Sea2T/root-home/alpine3/proc
Unmounting /tmp/mnt/Sea2T/root-home/alpine3/dev/pts
Unmounting /tmp/mnt/Sea2T/root-home/alpine3/dev
If you want to remove /tmp/mnt/Sea2T/root-home/alpine3 directory, run: /tmp/mnt/Sea2T/root-home/alpine3/destroy --remove

(Paths like /tmp/mnt are usual for routers.)

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