richlowe/smartos-ipkg — Issue #2: Replace SDC's zoneinit
Author: bdha
Created: 2012-01-25 10:30:49+00:00
State: open

"joyent" brand zones drop "zoneinit", a series of shell scripts that do post-configuration of the zone:

* Adds an entry to `/etc/hosts`
* Sets up `/etc/resolv.conf`
* Runs `sed` on `sshd_config` to allow PasswordAuth

And cleans or modifies various files.

In a SmartOS dataset, look at: `smartos64-1.4.7/root/root/zoneinit.d`

Most of these actions should simply be part of the template build and release process (i.e., setting configuration files to standard or sane defaults, or cleaning up spool files).

The other actions (configuring and testing networking) should very likely move to VM.js.