From owner-freebsd-stable@FreeBSD.ORG Fri Jun 20 16:33:37 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B581A74A; Fri, 20 Jun 2014 16:33:37 +0000 (UTC) Received: from secure.freebsdsolutions.net (secure.freebsdsolutions.net [69.55.234.48]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7EB4A2291; Fri, 20 Jun 2014 16:33:37 +0000 (UTC) Received: from [10.10.1.198] (office.betterlinux.com [199.58.199.60]) (authenticated bits=0) by secure.freebsdsolutions.net (8.14.4/8.14.4) with ESMTP id s5KGXQLj063245 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Fri, 20 Jun 2014 12:33:26 -0400 (EDT) (envelope-from lists@jnielsen.net) From: John Nielsen Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: freebsd-update from script without tty Date: Fri, 20 Jun 2014 10:33:29 -0600 Message-Id: <295AB5F0-1601-4AF6-BCE1-FD592DE26FB1@jnielsen.net> To: FreeBSD stable Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) X-Mailer: Apple Mail (2.1878.2) X-DCC--Metrics: ns1.jnielsen.net 1282; Body=2 Fuz1=2 Fuz2=2 X-Virus-Scanned: clamav-milter 0.97.8 at ns1.jnielsen.net X-Virus-Status: Clean Cc: cperciva@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jun 2014 16:33:37 -0000 Hi Colin, list- I have a script that builds virtual FreeBSD disk images. After it = populates the base system it runs "freebsd-update -b ${MOUNTPOINT} ..." = to update the image with the latest security patch release. If I run the script from a terminal it works fine. However if I try to = run it from our user-friendly web interface (which spawns the script in = the background with no tty) the freebsd-update step fails: # UNAME_r=3D10.0-RELEASE freebsd-update -b /mnt/chroot fetch freebsd-update fetch should not be run non-interactively. Run freebsd-update cron instead. I understand and appreciate the use case for 'freebsd-update cron' but = in this case my script is running because a user requested and is = waiting for it, and a delay of up to an hour won't really fly. Can anyone suggest a workaround? Thanks, JN