[OpenAFS-port-darwin] Missing mount point on 10.3

Steve Lidie sol0@Lehigh.EDU
Fri, 31 Oct 2003 21:01:57 -0500


--Apple-Mail-3--849395199
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed


On Oct 29, 2003, at 2:00 PM, Edward Moy wrote:

> On Oct 29, 2003, at 9:41 AM, Robert Klingsten wrote:
>
>> On my 10.3 machine, everything appeared to install properly and I 
>> configured the ThisCell and CellServDB files ...
>>
>> The kext loads fine from what I can tell (if I try to load it by 
>> hand, it complains it is already loaded.)
>>
>> However, I don't have a /Network/afs directory and so the client 
>> startup fails with a "/Network/afs doesn't exist. Not starting AFS 
>> client." message.
>>
>> Where can I look for more clues?
>
> Yes, /Network is a read-only filesystem in 10.3.  Fortunately, setting 
> up the regular /afs directory works fine.
>
> 1.2.10a does set up /afs automatically on 10.3, but I didn't think to 
> change the postinstall script to modify an existing cacheinfo to 
> replace /Network/afs with /afs.
>
> I'm busy with other things right now, so if someone wants to file a 
> bug and even fix it, please go right ahead.
>

If I understand correctly, then this patch should be what you want 
(apply against OpenAFS-1.2.10a):


--Apple-Mail-3--849395199
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
	x-unix-mode=0644;
	name="OpenAFS-1.2.10b.diff"
Content-Disposition: attachment;
	filename=OpenAFS-1.2.10b.diff

diff -u -r OpenAFS.pkg/Contents/Resources/postinstall OpenAFS-1.2.10b.pkg/Contents/Resources/postinstall
--- OpenAFS.pkg/Contents/Resources/postinstall	Fri Oct 24 00:40:11 2003
+++ OpenAFS-1.2.10b.pkg/Contents/Resources/postinstall	Fri Oct 31 19:54:19 2003
@@ -24,7 +24,11 @@
 cd /var/db/openafs/etc
 
 if [ ! -f cacheinfo ]; then
-   cp cacheinfo.sample cacheinfo
+    cp cacheinfo.sample cacheinfo
+else
+    if [ $majorvers -ge 7 ]; then
+	/usr/bin/perl -p -i.bak -e 's]/Network/afs]/afs]' cacheinfo
+    fi
 fi
 
 # testing case -- upgrading from pre 1.2.7, but .last file exists.
@@ -54,7 +58,7 @@
   # there are local changes to be merged
   if [ -f CellServDB -a -f CellServDB.master.last ]; then
     echo Merging CellServDB entries....
-    perl $1/Contents/Resources/csrvdbmerge.pl
+    /usr/bin/perl $1/Contents/Resources/csrvdbmerge.pl
     echo done
   else
     # this is a new install, or an upgrade from pre-1.2.7

--Apple-Mail-3--849395199
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed



The new package is available at:
	
http://www.lehigh.edu/sol0/Macintosh/OpenAFS-1.2.10b.pkg.tar.gz



--Apple-Mail-3--849395199--