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). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1038108 Title: cloud-init should offer an option to reboot following updates if the kernel was changed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1038108/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
