Opened 21 years ago

Closed 20 years ago

#679 closed defect (fixed)

Too many coreutils binaries moved to /bin

Reported by: greg@… Owned by: lfs-book@…
Priority: normal Milestone:
Component: Book Version: CVS
Severity: normal Keywords:
Cc:

Description

LSB compliance implies FHS compliance.

The FHS mentions the minimum set of essential binaries that need to be in /bin. It also talks about "may also contain commands which are used indirectly by scripts".

We are currently moving these binaries into /bin that are not mentioned by FHS:

dir dircolors du install mkfifo shred touch vdir

Unless someone comes up with good reasons why these binaries should live in /bin, I propose we leave them in /usr/bin by not moving them and adjust the coreutils commnds accordingly. We would make a symlink to "/usr/bin/install" in /bin.

Not urgent. Discuss on lfs-dev after 5.0 release.

Change History (5)

comment:1 by a.fyfe@…, 21 years ago

touch is used in /etc/rc.d/init.d/cleanfs. But the file systems are mounted before it's run so it shouldn't matter if it's in /usr/bin (if the user has /usr on a different partition) rather than /bin should it?

comment:2 by gerard@…, 21 years ago

FHS also mentions, or used to mention, that all binaries that are used in bootscripts should reside in /bin and /sbin as appropriate. In case the /usr mount fails, the boot process won't fail due to binaries that might be missing (but a missing /usr might not cause the boot to fail if such bins would be in /bin or /sbin).

Some files that Greg mentioned (vdir dircolors maybe others) aren't used in the bootscripts so should reside in /usr/bin

So, somebody is going to scrutinize the bootscripts to figure out the extra binaries we need in /bin and /sbin

comment:3 by greg@…, 21 years ago

In response to comment #1, yes, "touch" is used in the bootscripts currently. But it's use is bogus and not needed at all. It can be replaced by "> /var/run/utmp" like is currently done in the mountfs script for /etc/mtab.

In response to Gerard's comment, AFAICT, all binaries currently used in the bootscripts are currently in /bin and /sbin.

comment:4 by gerard@…, 20 years ago

Priority: lowestnormal

comment:5 by greg@…, 20 years ago

Resolution: fixed
Status: newclosed

Have committed the fixes. Also, Have left "touch" and "install" for now i.e. we're still moving them into /bin.

"touch" should definitely be left in /usr/bin, but this cannot happen until the bootscripts are modified. Will make a comment in the bootscripts bz entry. Closing.

Note: See TracTickets for help on using tickets.