by devit · 10y ago · 0 comments
In addition to clearing EFI variables, the current behavior will also attempt to clear any mounted removable drives and any mounted network drives, which is usually even more harmful than messing with EFI.
Of course that would be a backwards incompatible change, although I don't think many scripts rely on this behavior.
There is a --one-file-system argument that skips directories not on the same filesystem. You could add this layer of protection by adding it to an alias in your shell.
rm -rf "$STEAMROOT/"*
When $STEAMROOT was empty, "steam apparently deleted everything owned by my user recursively from the root directory. Including my 3tb external drive I back everything up to that was mounted under /media."
http://web.archive.org/web/20061021192240/http://blogs.sun.c...
GNU coreutils changed the default to --preserve-root some years later, in version 6.2:
http://git.savannah.gnu.org/cgit/coreutils.git/tree/ChangeLo...