This patch enables unattended upgrades by a setting in the config file. When Unattended=yes is set, freebsd-update assumes yes for all user prompts and writes everything it would have written and confirmed with the user to standard out without paging. This allows for unattended upgrades to take place only if the user knows what they are doing and specifically takes steps to enable this behavior. It is intended for environments with large numbers of identical or very similar machines where a staging server is used beforehand to verify that the unattended install will proceed correctly. The administrator can send the output to a file or through tee to keep a record of what happened and review it after each step in the upgrade process. Fix: The attached patch is for both the freebsd-update script and the default configuration file (where Unattended defaults to no and comments explain impact of setting to yes). Patch attached with submission follows: How-To-Repeat: To perform an unattended install with this patch, set Unattended=yes in the freebsd-update.conf file and run freebsd-update as directed in the FreeBSD Handbook.
Responsible Changed From-To: freebsd-bugs->cperciva Over to maintainer.
batch change: For bugs that match the following - Status Is In progress AND - Untouched since 2018-01-01. AND - Affects Base System OR Documentation DO: Reset to open status. Note: I did a quick pass but if you are getting this email it might be worthwhile to double check to see if this bug ought to be closed.
Drop freebsd-update PRs which were assigned to me. I'm not working on this code any more.
At least as of commit bd102b7 on master, freebsd-update.sh has a --not-running-from-cron option that appears to accomplish the intent of this change. Withdrawing and closing.