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

Warn against rm -rf'ing directory created by script #26

Open
haileys opened this issue Feb 25, 2021 · 1 comment
Open

Warn against rm -rf'ing directory created by script #26

haileys opened this issue Feb 25, 2021 · 1 comment

Comments

@haileys
Copy link

haileys commented Feb 25, 2021

alpine-chroot-install mounts several filesystems into the created chroot directory - even before it's actually chrooted into.

It appears that the destroy script takes care to unmount these filesystems before removing the chroot, however it is not immediately clear that the destroy script is the only safe way to remove the chroot.

I have just hosed a running Linux system due to making this mistake. I believe only transient state has been affected and a reboot will fix things, but a warning about this pitfall would be very much appreciated.

@intjelic
Copy link

intjelic commented May 7, 2021

Same happened to me.

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

2 participants