Re: Checking whether an rc.d script was invoked from rc

2022-04-12 Thread Robert Elz
Date:Tue, 12 Apr 2022 12:53:00 +0200 From:Edgar =?iso-8859-1?B?RnXf?= Message-ID: | My (second) question was about patching the binary so it would link to | libc, libm and libpcap from /lib, not /usr/lib. Don't bother, just make /usr/lib (in the root partition,

Re: Checking whether an rc.d script was invoked from rc

2022-04-12 Thread Martin Husemann
On Tue, Apr 12, 2022 at 12:53:00PM +0200, Edgar Fuß wrote: > > Make the script require CRITLOCALMOUNTED (in -current, or mountcritlocal > > in older versions)? > I don't get that. That wouldn't mount /usr, no? Duh, right - I have /usr in critical_filesystems_local on all machines where it is a sep

Re: Checking whether an rc.d script was invoked from rc

2022-04-12 Thread Edgar Fuß
> Make the script require CRITLOCALMOUNTED (in -current, or mountcritlocal > in older versions)? I don't get that. That wouldn't mount /usr, no? My (second) question was about patching the binary so it would link to libc, libm and libpcap from /lib, not /usr/lib. Or would it do that automatically

Re: Checking whether an rc.d script was invoked from rc

2022-04-12 Thread Martin Husemann
On Tue, Apr 12, 2022 at 12:09:40PM +0200, Edgar Fuß wrote: > Alternatively, I could copy na6 to /local/bin (or whatever). It only needs > libc, libpcap and libm, which are all in /lib, but ldd say the binary > references /usr/lib. How do I change that? Make the script require CRITLOCALMOUNTED (i