OS-3667 lxbrand support RO ifconfig
OS-3670 lxbrand dockerinit should use correct lx_proc
make joyent-minimal brand more flexible

fixes joyent/smartos-live#118

joyent-minimal and joyent brands now share the
/zones/manifests/joyent lofs mount

This is safe because the minimal brand overwrites the SMF repository of
whatever image is being used with its own minimal seed repository which
disables early-manifest-import and manifest-import

This change allows a joyent-minimal zone to import any other service
available to the joyent brand without maintaining a complicated brand
manifests file
joyent/smartos-live#169 'recovery' boot option should have (root/root) in grub menu name
joyent/smartos-live#377 SmartOS: GRUB should use os_console and composite terminal
joyent/smartos-live#378 Want to specify console device when building SmartOS iso/usb
OS-1293 mail warning: [ID 702911 mail.alert] unable to qualify my own domain name (headnode) -- using short name

ported from sdc-platform.

Diff from generic overlay to sdc-version at the time was:

--- overlay/generic/lib/svc/method/identity-node	2014-12-25 20:46:29.693126478 +0000
+++ overlay/sdc/lib/svc/method/identity-node	2014-12-25 17:54:04.783472448 +0000
@@ -32,6 +32,9 @@
 . /lib/svc/share/smf_include.sh
 . /lib/svc/share/net_include.sh

+. /lib/sdc/config.sh
+load_sdc_config
+
 set -o xtrace

 # Make sure that the libraries essential to this stage of booting can be found.
@@ -141,7 +144,11 @@
     ipaddr=$(set | grep "^SYSINFO_Network_Interface_.*_IPv4_Address" | head -n1 | cut -d'=' -f2)
 fi
 if [[ -n ${ipaddr} ]]; then
-    printf "${ipaddr}\t${hostname}\n" >> /etc/hosts
+    mydomain=`echo $CONFIG_ufds_admin_email | cut -d@ -f2`
+    if [ -n "$mydomain" ]; then
+        fullname="${hostname}.${mydomain}"
+    fi
+    printf "${ipaddr}\t${hostname} ${fullname}\n" >> /etc/hosts
 fi

 # Reset the library path now that we are past the critical stage
ship vioif