1 The sysconfig program is the dynamic kernel loader provided for Digital UNIX systems.
3 For AFS to function correctly, the sysconfig program must run each time the machine reboots, so the AFS initialization script (included on the AFS CD-ROM) invokes it automatically. In this section you copy the appropriate AFS library file to the location where the sysconfig program accesses it and then run the script.
5 ## <a name="Building AFS into the Digital UN"></a> Building AFS into the Digital UNIX Kernel
7 Use the following instructions to build AFS modifications into the kernel on a Digital UNIX system.
9 1. Create a copy called AFS of the basic kernel configuration file included in the Digital UNIX distribution as /usr/sys/conf/machine\_name, where machine\_name is the machine's hostname in all uppercase letters.
15 1. Add AFS to the list of options in the configuration file you created in the previous step, so that the result looks like the following:
25 1. Add an entry for AFS to two places in the file /usr/sys/conf/files.
27 \* Add a line for AFS to the list of OPTIONS, so that the result looks like the following:
31 OPTIONS/nfs optional nfs
32 OPTIONS/afs optional afs
33 OPTIONS/nfs_server optional nfs_server
37 \* Add an entry for AFS to the list of MODULES, so that the result looks like the following:
42 MODULE/nfs_server optional nfs_server Binary
43 nfs/nfs_server.c module nfs_server optimize -g3
44 nfs/nfs3_server.c module nfs_server optimize -g3
46 MODULE/afs optional afs Binary
47 afs/libafs.c module afs
50 1. Add an entry for AFS to two places in the file /usr/sys/vfs/vfs\_conf.c.
52 \* Add AFS to the list of defined file systems, so that the result looks like the following:
57 #if defined(AFS) && AFS
58 extern struct vfsops afs_vfsops;
63 \* Put a declaration for AFS in the vfssw[] table's MOUNT\_ADDON slot, so that the result looks like the following:
67 &fdfs_vfsops, "fdfs", /* 12 = MOUNT_FDFS */
71 (struct vfsops *)0, "", /* 13 = MOUNT_ADDON */
73 #if NFS && INFS_DYNAMIC
74 &nfs3_vfsops, "nfsv3", /* 14 = MOUNT_NFS3 */
76 1. Mount the AFS CD-ROM for Digital UNIX on the local /cdrom directory. For instructions on mounting CD-ROMs (either locally or remotely via NFS), see your Digital UNIX documentation. Then change directory as indicated.
78 # cd /cdrom/alpha_dux40/root.client
80 1. Copy the AFS initialization script to the local directory for initialization files (by convention, /sbin/init.d on Digital UNIX machines). Note the removal of the .rc extension as you copy the script.
82 # cp usr/vice/etc/afs.rc /sbin/init.d/afs
84 1. Copy the AFS kernel module to the local /usr/sys/BINARY directory.
86 If the machine's kernel supports NFS server functionality:
88 # cp bin/libafs.o /usr/sys/BINARY/afs.mod
90 If the machine's kernel does not support NFS server functionality:
92 # cp bin/libafs.nonfs.o /usr/sys/BINARY/afs.mod
94 1. Configure and build the kernel. Respond to any prompts by pressing . The resulting kernel resides in the file /sys/AFS/vmunix.
98 1. Rename the existing kernel file and copy the new, AFS-modified file to the standard location.
100 # mv /vmunix /vmunix_noafs
102 # cp /sys/AFS/vmunix /vmunix
104 10. Reboot the machine to start using the new kernel, and login again as the superuser root.
111 Password: root_password