Re: Non-interactive run of `freebsd-update upgrade` possible?

From: vermaden <vermaden_at_interia.pl>
Date: Thu, 31 Jul 2025 13:53:13 UTC
Hi,the only 'workaround' I know is this:# yes | env PAGER=cat freebsd-update fetch&nbsp; &nbsp;--not-running-from-cron# yes | env PAGER=cat freebsd-update install --not-running-from-cronRegards,vermadenTemat: Non-interactive run of `freebsd-update upgrade` possible?Data: 2025-07-31 13:10Nadawca: "Patrick M. Hausen" &lt;hausen@punkt.de&gt;Adresat: "Freebsd Stable" &lt;freebsd-stable@freebsd.org&gt;; &gt; Hi all,
&gt; 
&gt; It's time to upgrade our ~100 hosts - again - and I would really
&gt; like to at least partly automate the procedure.
&gt; 
&gt; Current issue is that this sequence:
&gt; 
&gt; 	freebsd-update upgrade -r 14.3 -b /tmp/be_mount.EkJx
&gt; 	freebsd-update install -b /tmp/be_mount.EkJx
&gt; 	freebsd-update install -b /tmp/be_mount.EkJx
&gt; 
&gt; in my experience insists on asking "Does this look reasonable? (y/n)"
&gt; interactively.
&gt; 
&gt; And no version of
&gt; 
&gt; 	export ASSUME_ALWAYS_YES=yes
&gt; 
&gt; or
&gt; 
&gt; 	--not-running-from-cron
&gt; 
&gt; seems to change that.
&gt; 
&gt; Am I missing anything? I mean, after updating a handful of test
&gt; systems - and especially when upgrading into a new BE -
&gt; it should be possible to just rollout the new release via Ansible.
&gt; 
&gt; Thanks and kind regards,
&gt; Patrick
&gt; -- 
&gt; punkt.de GmbH
&gt; Patrick M. Hausen
&gt; .infrastructure
&gt; 
&gt; Sophienstr. 187
&gt; 76185 Karlsruhe
&gt; 
&gt; Tel. +49 721 9109500
&gt; 
&gt; https://infrastructure.punkt.de
&gt; info@punkt.de
&gt; 
&gt; AG Mannheim 108285
&gt; Geschäftsführer: Daniel Lienert, Fabian Stein
&gt; 
&gt;