S. Ezreal
S. Ezreal

Reputation: 11

Does delete chroot environment before umount /sys safe?

I use chroot for some purpose and I also ran following command to mount some directory to chroot environment: mount --rbind /sys sys/ mount --rbind /dev dev/

Then I want to delete this environment. But I was careless! I just exit chroot environment and just ran "rm -rf chroot_environment/". Then my shell gave out plenty out errors like "Failed to delete /dev/xxxx. Operation not permitted"

Then I unmount this two folder and then I could normally delete the chroot environment.

So will this mistake affect my system? Will files in /sys be deleted?

Upvotes: 0

Views: 45

Answers (0)

Related Questions