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