joyent/smartos-vmtools — pull request #1 by prasmussen (2012-06-17 23:53:32+00:00)
Title: Debian / Ubuntu compability changes

I could not get vmtools to work on the latest ubuntu and debian releases. I've made som changes to get them to work. Tested on Ubuntu 12.04 and Debian 6.0.5. Changes explained below.

## 2c714614
rc.local was not installed on debian based systems. rc.local is needed to regenerate the ssh keys at first boot.

## 3c0654fb
rc.local on Ubuntu did not regenerate the ssh keys. Now it does.

## 0283548b
The prepare image script checks if the root password is empty. The check was done one the shadow backup file, the check should probably be done on the main shadow file. Also, Ubuntu has '!' has a password hash for the root user as default which should be accepted as an empty password.

## 87a577cd
The networking-interfaces-config.conf script did not work on Ubuntu. As far as i could figure out, upsert scripts is run by sh, and the array expansion is invalid in sh.

## c181d822
I've added a section on the metadata api in the readme.