Comment 1 for bug 1038108

Revision history for this message
Scott Moser (smoser) wrote :

Proof of concept has this diff:
  http://paste.ubuntu.com/1161567/

resulting in this console output:
 http://paste.ubuntu.com/1161564/

and this cloud-init.log:
 http://paste.ubuntu.com/1161571/

Specifically:
Aug 22 20:40:36 server-14956 [CLOUDINIT] util.py[DEBUG]: Writing to /var/run/reboot-required - wb: [420] 3 bytes
Aug 22 20:40:36 server-14956 [CLOUDINIT] cc_apt_update_upgrade.py[WARNING]: rebooting per /var/run/reboot-required
Aug 22 20:40:36 server-14956 [CLOUDINIT] util.py[DEBUG]: Running command ['/sbin/reboot'] with allowed return codes [0] (shell=False, capture=True)
2012-08-22 20:40:45,149 - util.py[DEBUG]: Cloud-init v. 0.7 running 'init-local' at Wed, 22 Aug 2012 20:40:45 +0000. Up 5.53 seconds.

The patch there is hacked to turn this on by default and also to force the writing of that file (and avoid a reboot loop by having me touch /etc/foo first).