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).
Proof of concept has this diff: paste.ubuntu. com/1161567/
http://
resulting in this console output: paste.ubuntu. com/1161564/
http://
and this cloud-init.log: paste.ubuntu. com/1161571/
http://
Specifically: reboot- required - wb: [420] 3 bytes update_ upgrade. py[WARNING] : rebooting per /var/run/ reboot- required
Aug 22 20:40:36 server-14956 [CLOUDINIT] util.py[DEBUG]: Writing to /var/run/
Aug 22 20:40:36 server-14956 [CLOUDINIT] cc_apt_
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).