[16234] in Athena Bugs

home help back first fref pref prev next nref lref last post

sgi [8.2.9]: bringing some things local with mkserv

daemon@ATHENA.MIT.EDU (Jonathon Weiss)
Tue Aug 25 21:23:45 1998

Date: Wed, 26 Aug 1998 01:23:40 GMT
To: bugs@MIT.EDU, mkserv@MIT.EDU
Cc: jweiss@MIT.EDU
From: Jonathon Weiss <jweiss@MIT.EDU>


System name:		deliverator.mit.edu
Type and version:	IP22 8.2.9
Display type:		GR3-XZ

What were you trying to do?
	bring certain things local, by putting them in
	/var/server/private.sync


What went wrong?
	Tehy are brought local in /var/server, but the symlinks on the
	root partition still point to /os.


What should have happened?
	the rootlinks should have been updated to point to /var/server


Yo, got any documentation, or other info?
	Yeah, this only happens when the target of the link is also a link.
	a good example of this is /usr/bin/strip.

deliverator# ls -l {,/os,/var/server}/usr/bin/strip
lrwxr-xr-x    1 root     sys           17 Mar 18 19:32 /os/usr/bin/strip -> ../lib/driverwrap
lrwxr-xr-x    1 root     sys           17 Aug 22 02:28 /usr/bin/strip -> /os/usr/bin/strip
lrwxrwxrwx    1 root     sys           17 Aug 22 05:53 /var/server/usr/bin/strip -> ../lib/driverwrap

We see that the link is brought local as it should be, but
/usr/bin/strip still points at the packs.  Arguably this is a mkserv
bug, but due to complications with relative and absolute links, etc.
I'm not convinced it's possible to get mkserv to DTRT in all cases.
In the past we've attempted to avoid cases like this by having track
copy the link on the os local rather than linking it it.  However,
using the native SGI install stuff, I'm not sure that is practical
either.  I attempted to get a list of the relevant files with a
combination of find and ls, but I think there was a flaw in my
approach.  Either way there were *a lot* of them.

Anyone have any thoughts or suggestions?

home help back first fref pref prev next nref lref last post