On 18-Jul-01 Etienne de Bruin wrote:
> But what does this accomplish in the contect of release.8 if our purpose is
> to 'copy' all the binaries to the new mfsroot?
All the binaries live in /stand.
You have /stand/ls, /stand/sysinstall, etc. all as one big crunch file.
The /bin and /sbin symlinks allow you to find the binaries in /stand that are
normally in /bin and /sbin in their normal location.
So in the mfsroot you end up with this:
/stand
ls hardlink to sysinstall crunch
sysinstall
... (other binaries)
/bin -> /stand
/sbin -> /stand
That way you can use /bin/ls to find the ls binary in /stand.
> On 18-Jul-01 Etienne de Bruin wrote:
>> I was reading the Makefile in /usr/src/release and wondering about the
>>
>> for dir in bin sbin ; do \
>> ln -sf /stand $$dir; \
>> done
>>
>> part in release.8 - it is my understanding that all that is under /stand
> is
>> linked to files in $$dir.
>>
>> What does this accomplish?
>
> No, it links $$dir to /stand. This creates /sbin and /bin directories so
> that
> you can still see /bin/ls even though ls is really in /stand/ls. This is to
> make a "normal" path work right, and to allow scripts which assume the
> default
> location of utilities work.
>
> --
>
> John Baldwin <[EMAIL PROTECTED]> -- http://www.FreeBSD.org/~jhb/
> PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
> "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/
--
John Baldwin <[EMAIL PROTECTED]> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.Baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!" - http://www.FreeBSD.org/
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message