Revert "Use config/root-password (variables not passed to hooks)."

This reverts commit c2f21bf27ea21d4b6a8501a8a329cad2ce3148a6.
Removed unused code.