From nobody@FreeBSD.org Wed Nov 25 15:30:02 2009 Return-Path: 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 Subject: freebsd-update fails to check that writes will succeed, will hilarious consequences X-Send-Pr-Version: www-3.1 X-GNATS-Notify: >Number: 140863 >Category: bin >Synopsis: freebsd-update(8) fails to check that writes will succeed, will hilarious consequences >Confidential: no >Severity: serious >Priority: medium >Responsible: cperciva >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: Sat Oct 22 02:53:35 UTC 2011 >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: Responsible-Changed-From-To: freebsd-bugs->cperciva Responsible-Changed-By: eadler Responsible-Changed-When: Sat Oct 22 02:53:34 UTC 2011 Responsible-Changed-Why: you probably want to take a look at this http://www.freebsd.org/cgi/query-pr.cgi?pr=140863 >Unformatted: