veyron/services/mgmt/node,veyron/tools/mgmt/nminstall: make self_install pass
through the --name flag

We want to be able to install a node manager that publishes itself. Note, this
won't work across updates (TODO left to address that).

While we're at it, also start fetching the agent binary during install.

Change-Id: Ie7d8d496155076d518f1500df254837f767ff4e1
diff --git a/tools/mgmt/nminstall b/tools/mgmt/nminstall
index 449e38d..858ade7 100755
--- a/tools/mgmt/nminstall
+++ b/tools/mgmt/nminstall
@@ -31,8 +31,7 @@
   echo "./nminstall <install parent dir> [<binary source>]"
 }
 
-# TODO(caprita): Also agent.
-readonly BIN_NAMES=(noded suidhelper)
+readonly BIN_NAMES=(noded suidhelper agentd)
 
 ###############################################################################
 # Copies one binary from source to destination.
@@ -163,7 +162,8 @@
   # Tell the node manager to install itself.
   local -r NM_ROOT="${INSTALL_DIR}/nmroot"
   echo "Installing node manager under ${NM_ROOT} ..."
-  VEYRON_NM_CURRENT="${INSTALL_DIR}/curr" VEYRON_NM_ROOT="${NM_ROOT}" VEYRON_NM_HELPER="${SETUID_SCRIPT}" "${BIN_INSTALL}/noded" --install_self
+  local -r PUBLISH=$(hostname)
+  VEYRON_NM_CURRENT="${INSTALL_DIR}/curr" VEYRON_NM_ROOT="${NM_ROOT}" VEYRON_NM_HELPER="${SETUID_SCRIPT}" "${BIN_INSTALL}/noded" --install_self --name="${PUBLISH}"
   echo "Node manager installed."
 }