Skip to content

Instantly share code, notes, and snippets.

@philips
Last active January 3, 2016 14:49

Revisions

  1. philips renamed this gist Jan 17, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. philips created this gist Jan 17, 2014.
    28 changes: 28 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    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!