Bug 2802

Summary: 6.0 initscripts incompatible with mounting /usr via nfs
Product: [Retired] Red Hat Linux Reporter: plezbert
Component: initscriptsAssignee: David Lawrence <dkl>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 6.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-07-01 17:42:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description plezbert 1999-05-13 21:54:31 UTC
The 6.0 initscripts do not allow mounting /usr via nfs
because of many dependencies on programs on the /usr
partition.

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 17:34:59 UTC
OK...

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.edu> 05/17/99 11:12 -------

Comment 2 plezbert 1999-05-17 21:50:59 UTC
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 22:26:59 UTC
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 17:42:59 UTC
OK, I believe this should be fixed as of:
initscripts > 4.23.
apmd >= 3.0beta8-1
ypserv >= 1.3.6.94-2
ypbind >= 3.3-21

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