diff options
author | Scott Moser <smoser@ubuntu.com> | 2014-07-31 14:13:37 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2014-07-31 14:13:37 -0400 |
commit | de57d05b5039d13c3dda5fb0382287b847517954 (patch) | |
tree | 28fe473e86aa362739532b3113f46c90d5c8177b /cloudinit/config | |
parent | 5f59179ac0a281423701d36f05b2e42258f75248 (diff) | |
download | vyos-cloud-init-de57d05b5039d13c3dda5fb0382287b847517954.tar.gz vyos-cloud-init-de57d05b5039d13c3dda5fb0382287b847517954.zip |
add some doc to module
Diffstat (limited to 'cloudinit/config')
-rw-r--r-- | cloudinit/config/cc_ubuntu_init_switch.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/cloudinit/config/cc_ubuntu_init_switch.py b/cloudinit/config/cc_ubuntu_init_switch.py index 3ab23a23..faa41ede 100644 --- a/cloudinit/config/cc_ubuntu_init_switch.py +++ b/cloudinit/config/cc_ubuntu_init_switch.py @@ -16,6 +16,28 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +""" +ubuntu_init_switch: reboot system into another init + +This provides a way for the user to boot with systemd even if the +image is set to boot with upstart. It should be run as one of the first +cloud_init_modules, and will switch the init system and then issue a reboot. +The next boot will come up in the target init system and no action will +be taken. + +This should be inert on non-ubuntu systems, and also exit quickly. + +config is comes under the top level 'init_switch' dictionary. + +#cloud-config +init_switch: + target: systemd + +'target' can be 'systemd' or 'upstart'. Best effort is made, but its possible +this system will break, and probably won't interact well with any other +mechanism you've used to switch the init system. +""" + from cloudinit.settings import PER_INSTANCE from cloudinit import log as logging from cloudinit import util |