Last active
January 3, 2016 14:49
-
-
Save philips/8478571 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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