Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Sep 2020 18:40:45 +0200
From:      =?utf-8?Q?Pawe=C5=82_Biernacki?= <kaktus@FreeBSD.org>
To:        freebsd-arch@freebsd.org
Subject:   Re: Appropriate path for mount/fsck sub-programs?
Message-ID:  <580CD0FA-98B5-4C73-91C9-FC9D274360A3@FreeBSD.org>
In-Reply-To: <20200916204214.GA87473@spindle.one-eyed-alien.net>
References:  <20200916204214.GA87473@spindle.one-eyed-alien.net>

next in thread | previous in thread | raw e-mail | index | archive | help


> On 16 Sep 2020, at 22:42, Brooks Davis <brooks@FreeBSD.org> wrote:
>=20
> [=E2=80=A6]
> 0) Do nothing
> 1a) Add /usr/local/sbin to _PATH_SYSPATH (it's only used in mount and
>   fsck).
> 1b) The same, but a new variable.
> 2) Switch to _PATH_DEFPATH (that also add .../bin directories).
> 3) Use PATH, optionally prepending /rescue
> 4) Use exevp and teach crunched_main.c to prepend /rescue to PATH.
>=20
> I'd like opinions on what people think makes sense here.  I think (0)
> aligns poorly with current project directions, but how far to go is a
> question to answer before implementing something.

Great timing as I recently got hit by the sudden and unwelcome =
appearance of /sbin/fsck_ext2fs on my systems.  I created =
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D249284 =
<https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D249284>; to track =
this issue.

I believe that 1a) is the sanest and probably easiest to implement, or =
maybe we should add an option to fsck to specify additional paths too =
look at and update rc scripts to include /usr/local/sbin automatically.

Pawel.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?580CD0FA-98B5-4C73-91C9-FC9D274360A3>