This repo is used to install the guest tools for lx-brand images. The guest tools are required for enabling ssh key creation and meta data (user-sript, operator-script etc.) functionality. This repo, via the install.sh script, also creates symlinks and wrapper scripts for binaries found in /native in an lx-brand zone. See below for details.
This software is still under active development and should be used with care.
To install the guest tools, run the ./install.sh script with the -i flag specifying the install path:
./install.sh -i /data/chroot
The install.sh script installs the following:
- rc.local boot scripts from
src/lib/smartdc - Symlinks to binaries found in
/native. Seesymlinks.txtfor the list of relevant binaries - Wrapper scripts for binaries in
/native. Seewrappers.txtfor the list of relevant binaries - A custom
rc.localfile (/etc/rc.d/rc.localor/etc/rc.localdepending on the distrubution)
To enusre the scripts are consistent with the Joyent style guidelines, use ./tools/bashstyle:
./tools/bashstyle install.sh
Tests are executed using Bats and can found in test.
To install Bats:
$ git clone https://github.com/sstephenson/bats.git
$ cd bats
$ [sudo] ./install.sh /usr/local
Run the tests with:
bats test