From owner-freebsd-current@FreeBSD.ORG Tue Jan 27 20:44:15 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D4B616A4CE for ; Tue, 27 Jan 2004 20:44:15 -0800 (PST) Received: from thunker.thunk.org (thunk.org [140.239.227.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4351D43D5C for ; Tue, 27 Jan 2004 20:43:49 -0800 (PST) (envelope-from tytso@thunk.org) Received: from dsl092-109-027.nyc2.dsl.speakeasy.net ([66.92.109.27] helo=thunk.org) authenticated as tytso by thunker.thunk.org with asmtp (tls_cipher TLSv1:RC4-SHA:128) (Exim 3.35 #1 (Debian)) id 1AlhYI-0006C7-00; Tue, 27 Jan 2004 23:43:46 -0500 Received: from tytso by thunk.org with local (Exim 4.30) id 1AlhYH-0006Fc-Hv; Tue, 27 Jan 2004 23:43:45 -0500 Date: Tue, 27 Jan 2004 23:43:45 -0500 From: Theodore Ts'o To: freebsd-current@freebsd.org Message-ID: <20040128044345.GC23831@thunk.org> References: <20040122215703.E8399@gamplex.bde.org> <20040127200335.GA23372@thunk.org> <20040128001647.GA24110@merlin.emma.line.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040128001647.GA24110@merlin.emma.line.org> User-Agent: Mutt/1.5.5.1+cvs20040105i Sender: Theodore Ts'o X-Habeas-SWE-1: winter into spring X-Habeas-SWE-2: brightly anticipated X-Habeas-SWE-3: like Habeas SWE (tm) X-Habeas-SWE-4: Copyright 2002 Habeas (tm) X-Habeas-SWE-5: Sender Warranted Email (SWE) (tm). The sender of this X-Habeas-SWE-6: email in exchange for a license for this Habeas X-Habeas-SWE-7: warrant mark warrants that this is a Habeas Compliant X-Habeas-SWE-8: Message (HCM) and not spam. Please report use of this X-Habeas-SWE-9: mark in spam to . X-Mailman-Approved-At: Wed, 28 Jan 2004 06:12:04 -0800 Subject: Re: How to fsck -CURRENT on next reboot [ext2fs] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2004 04:44:15 -0000 On Wed, Jan 28, 2004 at 01:16:47AM +0100, Matthias Andree wrote: > The problem is that traditionally, /usr was separate from /, > consequentially, /usr is not mounted at the time /etc/fstab-triggered > checks are running. OTOH, FreeBSD ports install into /usr/local, I can > either violate port packaging policies and install everything into /sbin > and /lib (I'd like to avoid that) or symlink true to /sbin/fsck_ext2fs > and run an awk script from /usr/local/etc/rc.d/* > > > Can BSD packages in the ports system allowed prompt the user upon > > installation/upgrade? If so the obvious thing to do is to ask the > > user, when they install the new version of e2fsprogs, whether they > > want the pass # in /etc/fstab to be reset to some sane value, and then > > have the postinstall script do that. > > That's possible. Thanks for sharing your idea. Would it be legit to have the postinstall script attempt to hard link /sbin/fsck_ext2fs to /usr/local/..., and if that fails (because /usr is on a separate filesystem from /), then copy e2fsck to /sbin/fsck_ext2fs? - Ted