From owner-freebsd-bugs@FreeBSD.ORG Wed Nov 25 15:40:03 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 725E71065670 for ; Wed, 25 Nov 2009 15:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 362188FC1B for ; Wed, 25 Nov 2009 15:40:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nAPFe3wm013029 for ; Wed, 25 Nov 2009 15:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nAPFe3H1013028; Wed, 25 Nov 2009 15:40:03 GMT (envelope-from gnats) Resent-Date: Wed, 25 Nov 2009 15:40:03 GMT Resent-Message-Id: <200911251540.nAPFe3H1013028@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, mark Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC5AF1065670 for ; Wed, 25 Nov 2009 15:30:02 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 9B2C18FC1C for ; Wed, 25 Nov 2009 15:30:02 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nAPFU1Ph074539 for ; Wed, 25 Nov 2009 15:30:01 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id nAPFU1jM074538; Wed, 25 Nov 2009 15:30:01 GMT (envelope-from nobody) Message-Id: <200911251530.nAPFU1jM074538@www.freebsd.org> Date: Wed, 25 Nov 2009 15:30:01 GMT From: mark To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: bin/140863: freebsd-update fails to check that writes will succeed, will hilarious consequences X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Nov 2009 15:40:03 -0000 >Number: 140863 >Category: bin >Synopsis: freebsd-update fails to check that writes will succeed, will hilarious consequences >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Nov 25 15:40:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: mark >Release: 8.0-RELEASE >Organization: n/a >Environment: *broken* >Description: Having just completed: # freebsd-update -r 8.0-RELEASE upgrade # freebsd-update install I rebooted and came back up in single-user mode to run the final freebsd-update install command. I mounted /usr and /var and forgot to set / to read-write. freebsd-update gleefully installed half an update whilst spewing errors, resulting in a system full of binaries linked to libraries in /lib that no longer exist. Due to other problems (mostly with sysinstall eventually doing what it was told on the sixth reboot), it's taken most of the day to even get this machine into a state where it can be fixed. >How-To-Repeat: Do the above. >Fix: Check mounted partitions for acceptable flags. Check for chflags on files to be replaced. >Release-Note: >Audit-Trail: >Unformatted: