The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

Views: 1,874โ€…    Votes:  2โ€…    โœ… Solution
Tags: updates   ubuntu-core  
Link: ๐Ÿ” See Original Answer on Ask Ubuntu ๐Ÿ”—

URL: https://askubuntu.com/q/949895
Title: Prevent automatic reboot after Ubuntu Core update on 16.xx
ID: /2017/08/26/Prevent-automatic-reboot-after-Ubuntu-Core-update-on-16.xx
Created: August 26, 2017
Upload: January 3, 2023    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


I was trying to track down the Snappy Ubuntu Core source code and the closest I could find was this which has an accepted answer that I find unacceptable. With the source code many developers seeking to turn off auto-updates might be able to accomplish a goal akin to your own.

The second best solution for them, and perhaps yourself, is to find the name of the binary that performs auto-updating. Letโ€™s say for example it is called a. Rename it to b. Replace a with a simple program that displays โ€œHello Worldโ€. During system boot call b in startup scripts.

Basically whenever you want to update your OS (or โ€œStoreโ€ as they like to call it) at your convenience simply reboot your machine. After the update it will reboot again. On the second reboot when b is called the first reboot already updated the applications (called โ€œsnapsโ€) so the second reboot would perform without an update.

Whenever Ubuntu tries to run auto-updates behind your back, it will simply be running a new program that writes โ€œHello Worldโ€ to /var/log/syslog.

Iโ€™m not using Raspberry Pi 2 so I canโ€™t find the name of the auto-update program that needs to be renamed to โ€œbโ€. Hopefully someone else does use it and can provide the name.

โ‡ง How can I copy the content of a text file and paste it to another starting at a certain line? Can't delete empty directories with strange names  โ‡ฉ