From owner-freebsd-current@FreeBSD.ORG Tue Apr 3 10:10:40 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 64A3916A405; Tue, 3 Apr 2007 10:10:40 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id EA5EB13C4AD; Tue, 3 Apr 2007 10:10:39 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id l339xuca098462; Tue, 3 Apr 2007 11:59:56 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id l339xn1w051495 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 3 Apr 2007 11:59:49 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id l339xnsA001308; Tue, 3 Apr 2007 11:59:49 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id l339xner001307; Tue, 3 Apr 2007 11:59:49 +0200 (CEST) (envelope-from ticso) Date: Tue, 3 Apr 2007 11:59:49 +0200 From: Bernd Walter To: Andrew Pantyukhin Message-ID: <20070403095948.GL80382@cicely12.cicely.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cicely12.cicely.de Cc: FreeBSD Current Subject: Re: Surviving /dev/null disappearance X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2007 10:10:40 -0000 On Tue, Apr 03, 2007 at 01:16:41PM +0400, Andrew Pantyukhin wrote: > While porting mtpaint I stumbled upon a hacked up > configure script which has a test like this: > > ld -o /dev/null > > If you run this under root the net result is you > don't have /dev/null anymore. > > I fixed the configure script, writing to temp files > instead of /dev/null, but the question is, how can > I survive the situation. > > Without /dev/null very little works. You can mount > a second devfs over the first one, but half of the > programs running in the background (e.g. wmii) are > still freaked out bad. > > So is there a way to revive the system without a > reboot? (hint: /etc/rc.d/dev* scripts refuse to > work without /dev/null) mknod -c 0 0 /dev/null -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de