Appropriate path for mount/fsck sub-programs?

Paweł Biernacki kaktus at FreeBSD.org
Thu Sep 17 16:40:51 UTC 2020



> On 16 Sep 2020, at 22:42, Brooks Davis <brooks at FreeBSD.org> wrote:
> 
> […]
> 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.
> 
> 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=249284 <https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=249284> 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.



More information about the freebsd-arch mailing list