Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jan 2004 23:43:45 -0500
From:      Theodore Ts'o <tytso@mit.edu>
To:        freebsd-current@freebsd.org
Subject:   Re: How to fsck -CURRENT on next reboot [ext2fs]
Message-ID:  <20040128044345.GC23831@thunk.org>
In-Reply-To: <20040128001647.GA24110@merlin.emma.line.org>
References:  <m37jzmdnhf.fsf@merlin.emma.line.org> <20040122215703.E8399@gamplex.bde.org> <m3d69c81b2.fsf@merlin.emma.line.org> <20040127200335.GA23372@thunk.org> <20040128001647.GA24110@merlin.emma.line.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040128044345.GC23831>