[volunteers] Why you are careful about /dev/null operations as the root user
newmans at sonic.net
Thu Dec 17 08:05:13 PST 2015
On 12/17/2015 08:02 AM, kevin dankwardt wrote:
> I have found that the benefit of systemd-nspawn binding mounting/umounting dev,sys,proc handy. Plus when I remove the directory afterwards I don't
> have to make sure I umounted the bind mounts. I've killed a machine a couple of times already because I forgot to undo the bind mount before doing a
> rm -rf on a directory I had been using for chroot.
I added a "! mountpoint /dir" check to one of our scripts before doing an rm -rf for that reason.
More information about the volunteers