In my opinion, it is very definitely a wrong behaviour of any init script to erase the whole filesystem depending on the setting of an environment variable. The script should use sensible defaults if the variable is not set externally, or at least should exit gracefully in this case. Doing so in a shell script is trivial.
In my opinion, it is very definitely a wrong behaviour of any init script to erase the whole filesystem depending on the setting of an environment variable. The script should use sensible defaults if the variable is not set externally, or at least should exit gracefully in this case. Doing so in a shell script is trivial.