From owner-freebsd-toolchain@FreeBSD.ORG Sun Nov 20 10:22:34 2011 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D13B106566C; Sun, 20 Nov 2011 10:22:34 +0000 (UTC) (envelope-from darcsis@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 088908FC14; Sun, 20 Nov 2011 10:22:33 +0000 (UTC) Received: by iakl21 with SMTP id l21so8618919iak.13 for ; Sun, 20 Nov 2011 02:22:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:organization:references:user-agent :x-envelope-to:mail-followup-to:date:message-id:mime-version :content-type; bh=fLgatvBqu0VqhYe+wBsDaYkEDHI2dlqMtm/IXJ9bkCM=; b=ps6qrkakIk7SUIlS2Fq+5Kj8u8oXUPgBuGbFzJvMR6GkTkPd45L4Ux6+7Agkt3bBCt kLLN6QdTXQD9jDeT9mMwtYQBruXd50rRnVXT+D9OQytKzDZMUS5Sk6SkiTefW5ehDU1u 10pxYD2Dj26fCNY7frEflnp651MK09emF4mMM= Received: by 10.43.52.136 with SMTP id vm8mr8422727icb.26.1321782970996; Sun, 20 Nov 2011 01:56:10 -0800 (PST) Received: from localhost ([123.117.57.214]) by mx.google.com with ESMTPS id dm1sm7960019igb.6.2011.11.20.01.56.06 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 20 Nov 2011 01:56:09 -0800 (PST) From: darcsis@gmail.com (Denise H. G.) To: Alexander Best In-Reply-To: <20111119112418.GA42980@freebsd.org> (Alexander Best's message of "Sat, 19 Nov 2011 11:24:18 +0000") Organization: Pluto The Planet References: <20111119112418.GA42980@freebsd.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (berkeley-unix) X-Envelope-To: arundel@freebsd.org Mail-Followup-To: Alexander Best , freebsd-toolchain@freebsd.org Date: Sun, 20 Nov 2011 17:56:01 +0800 Message-ID: <8739djf77y.fsf@pluton.xbsd.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-toolchain@freebsd.org Subject: Re: 'make installkernel' succeeding on read-only fs? X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Nov 2011 10:22:34 -0000 On 2011/11/19 at 19:24, Alexander Best wrote: > > hi there, > just stumbled upon this little detail: > > 1) have "/" mounted read-only > 2) 'make buildkernel' > 3) 'make installkernel && echo "success"' > -> this will fail > 4) 'mount -uw /' > 5) 'make installkernel && echo "success"' > -> this will succeed > 6) 'mount -ur /' > 7) 'make installkernel && echo "success"' > -> this will succeed. why? According to mount(8), 'mount -ur /' will fail if / is already mounted read-write with any files currently opened by some processes. I think this might be your case. > > cheers. > alex > ................ -- If you've got them by the balls, their hearts and minds will follow.