From owner-freebsd-current@FreeBSD.ORG Tue Jan 27 16:16:54 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 BF07C16A4CE for ; Tue, 27 Jan 2004 16:16:54 -0800 (PST) Received: from mail.dt.e-technik.uni-dortmund.de (mail.dt.E-Technik.Uni-Dortmund.DE [129.217.163.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9FB3A43D64 for ; Tue, 27 Jan 2004 16:16:50 -0800 (PST) (envelope-from matthias.andree@gmx.de) Received: from m2a2.dyndns.org (krusty.dt.e-technik.uni-dortmund.de [129.217.163.1])A12AD1B799 for ; Wed, 28 Jan 2004 01:16:49 +0100 (CET) Received: by merlin.emma.line.org (Postfix, from userid 500) id 084A8A34C6; Wed, 28 Jan 2004 01:16:47 +0100 (CET) Date: Wed, 28 Jan 2004 01:16:47 +0100 From: Matthias Andree To: Theodore Ts'o Message-ID: <20040128001647.GA24110@merlin.emma.line.org> Mail-Followup-To: Theodore Ts'o , freebsd-current@freebsd.org References: <20040122215703.E8399@gamplex.bde.org> <20040127200335.GA23372@thunk.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040127200335.GA23372@thunk.org> User-Agent: Mutt/1.5.5.1i X-Mailman-Approved-At: Wed, 28 Jan 2004 06:12:04 -0800 cc: freebsd-current@freebsd.org 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 00:16:54 -0000 On Tue, 27 Jan 2004, Theodore Ts'o wrote: > > I am wondering how to deal with /etc/fstab. I can of course add a > > symlink from /sbin/fsck_ext2fs to %D/sbin/e2fsck, so I can type "fsck > > /linux" and have the file system checked, but this will not work when > > someone sets the Pass# column in fsck to something non-zero. > > But that's what's supposed to happen when someone sets the Pass# to > zero, yes? Or is the problem that in the past, /sbin/fsck_ext2fs > wasn't available, so some people may have put zero into the column in > order to prevent errors at boot time? 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. -- Matthias Andree Encrypt your mail: my GnuPG key ID is 0x052E7D95