Bug 2802 - 6.0 initscripts incompatible with mounting /usr via nfs
6.0 initscripts incompatible with mounting /usr via nfs
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
All Linux
medium Severity high
: ---
: ---
Assigned To: David Lawrence
Depends On:
  Show dependency treegraph
Reported: 1999-05-13 17:54 EDT by plezbert
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-07-01 13:42:41 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description plezbert 1999-05-13 17:54:31 EDT
The 6.0 initscripts do not allow mounting /usr via nfs
because of many dependencies on programs on the /usr

For example, xargs is used when creating the list of
interfaces to bring up, but xargs is found in /usr/bin
(which is not available since the network interface isn't
even up yet).  And the ypbind script uses ypwhich, which is
also in /usr/bin.  (And there may be other--these are just
the ones I've found so far.)  The only real solution to this
is to eliminate all uses of programs in /usr from the
initscripts, even if it means copying or moving needed
program to /bin or /sbin.

In addition, shutting down or rebooting the system won't
work because many of the system daemons (including syslogd
and klogd) are being run from the /usr partition.  This
means that /usr cannot be unmounted, and the system will
wait indefinitely.  I've solved this temporarily by making
netfs and network the last things to be killed in rc0.d and
rc6.d, but a more elegant solution would be to make sure
that none of the system daemons are run from /usr, either by
placing the programs in /sbin or by copying them to /tmp
before running them.
Comment 1 Bill Nottingham 1999-05-14 13:34:59 EDT

The xargs thing in network was a bug; it's fixed in
initscripts-4.18-1, which will be in the next Raw Hide.

AFAIK, the examples of stuff from /usr used before netfs is:

- ypwhich in ypbind, which we'll fix
- apmd & ypserv, which we probably won't. (There's a chicken
and egg problem with ypbind and ypserv anyways)

Are there any others?

Similarly, the only daemons run from /usr that are killed after
netfs are (that I'm aware of):

- apmd & ypserv, which we probably won't change
- syslogd/klogd, which we probably will...

What else have you noticed?

------- Email Received From  "Michael P. Plezbert" <plezbert@cs.wustl.edu> 05/17/99 11:12 -------
Comment 2 plezbert 1999-05-17 17:50:59 EDT
I did find one other problem after I submitted the first message:
rc.sysinit sets the clock before the nfs partitions are mounted, which
means that the /etc/localtime link is broken at the time.
Comment 3 Bill Nottingham 1999-06-23 18:26:59 EDT
The /etc/localtime problem should be fixed with the latest
initscripts (4.22) and timeconfig (3.0); these make /etc/localtime
be a copy of the timezone data file instead of a symlink
(the name of the file is stored in /etc/sysconfig/clock.)
Hence, you can set the clock as soon as the initscripts start.
Comment 4 Bill Nottingham 1999-07-01 13:42:59 EDT
OK, I believe this should be fixed as of:
initscripts > 4.23.
apmd >= 3.0beta8-1
ypserv >=
ypbind >= 3.3-21

all of which should be in the next Raw Hide release.

Note You need to log in before you can comment on or make changes to this bug.