yes, that it is. as is just about any use of the --no-preserve-root
flag in a script.
there is a reason that flag was added. the use of that flag is so dangerous that in most of the systems i administer at work i've replaced rm
with a shell script that errors out if that flag is passed and otherwise calls the original rm
with the provided arguments
it has not taken my coworkers long to become very annoyed at my servers because their scripts fail on my servers. they're even starting to use that flag less in their scripts! who said old engineers can't learn new tricks?