zlacker

[parent] [thread] 3 comments
1. techno+(OP)[view] [source] 2022-05-11 12:54:36
I believe they're referring to the old SunOS (at least) convention that /sbin was for utilities that could be run during the boot process before /usr was mounted. These tended to need to be statically linked, as the .so libraries were all under /usr. SunOS was how I learned the Unix filesystem layout, but of course that means a lot of my ideas of what "should" be where are outdated at this point.
replies(2): >>rascul+M1 >>tremon+4q
2. rascul+M1[view] [source] 2022-05-11 13:03:20
>>techno+(OP)
> I believe they're referring to the old SunOS (at least) convention that /sbin was for utilities that could be run during the boot process before /usr was mounted

My memory is hazy but I recall the distinction being / vs /usr not /bin vs /sbin.

replies(1): >>Initia+2f
◧◩
3. Initia+2f[view] [source] [discussion] 2022-05-11 14:09:51
>>rascul+M1
The article we're commenting on has that as the justification for /usr/bin and /bin in the second paragraph.
4. tremon+4q[view] [source] 2022-05-11 14:54:46
>>techno+(OP)
Rather, the convention was that /sbin was for static binaries so that the system could still be fixed online if the dynamic linker got hosed. It's not about /usr not being mounted, but /lib/ld-linux.so not functioning correctly. For that reason, glibc still ships (or used to ship) an sln binary (static ln), and Debian still offers sash (stand-alone shell): so you could at least try to restore the dynamic library link farm by hand.

But I have only ever seen historic references to that argument, from back when dynamic linking was scary and unreliable. I certainly have never encountered that situation in almost 25 years of using Linux.

[go to top]