alpine-chroot-install icon indicating copy to clipboard operation
alpine-chroot-install copied to clipboard

Warn against rm -rf'ing directory created by script

Open haileys opened this issue 3 years ago • 1 comments

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.

haileys avatar Feb 25 '21 01:02 haileys

Same happened to me.

intjelic avatar May 07 '21 18:05 intjelic