Skip to content

Instantly share code, notes, and snippets.

@philips
Last active January 3, 2016 14:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philips/8478571 to your computer and use it in GitHub Desktop.
Save philips/8478571 to your computer and use it in GitHub Desktop.

This is a temporary workaround to disable auto updates. As we move out of the alpha there will be a nicer method.

Add a unit file to stop update-engine-reboot-manager

There is a single simple script called "update-engine-reboot-manager" that does an automatic reboot after update-engine applies an update to your CoreOS machine. To stop automatic reboots after an update has been applied you need to stop this daemon. You can do this via a service file that is started at boot.

Create a file called /media/state/units/stop-reboot-manager.service that has the following contents:

[Unit]
Description=stop update-engine-reboot-manager

[Service]
Type=oneshot
ExecStart=/usr/bin/systemctl stop update-engine-reboot-manager

[Install]
WantedBy=local.target

Enable it immediatly

sudo systemctl enable --runtime /media/state/units/stop-reboot-manager.service
sudo systemctl start stop-reboot-manager.service

Have fun!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment