]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Add dynroot support
authorSam Hartman <hartmans@debian.org>
Mon, 25 Feb 2002 20:36:13 +0000 (20:36 +0000)
committerSam Hartman <hartmans@debian.org>
Mon, 25 Feb 2002 20:36:13 +0000 (20:36 +0000)
debian/openafs-client.config
debian/openafs-client.postinst
debian/openafs-client.templates
debian/postinst.mod
src/afsd/afs.conf.linux

index 1d1fdf1cc6af8088585b8da06e55fd86df626b41..3a8b6d15acb7a316e08b53f61bfe721f1eaa5bf1 100644 (file)
@@ -26,6 +26,12 @@ db_input low openafs-client/run-client || true
 if [ "x$AFS_AFSDB" != "x" ] ;then
     db_set openafs-client/afsdb $AFS_AFSDB
     fi
+if [ "x$AFS_DYNROOT" != "x" ] ; then
+    db_set openafs-client/dynroot $AFS_DYNROOT
+    fi
+db_beginblock
 db_input low openafs-client/afsdb ||true
 db_input low openafs-client/crypt || true
+db_input medium openafs-client/dynroot || true
+db_endblock
 db_go
index f7ebdbab3cdc599813ac6398d0c0cb19fe6fa8d4..010673608598339f6405227774c93415d1038d13 100644 (file)
@@ -65,7 +65,8 @@ case "$1" in
        echo AFS_AFSDB=$RET >>/etc/openafs/afs.conf.client
        db_get openafs-client/crypt
        echo AFS_CRYPT=$RET >>/etc/openafs/afs.conf.client
-
+db_get openafs-client/dynroot
+echo AFS_DYNROOT=$RET >>/etc/openafs/afs.conf.client
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)
index 8a2542929d20427e13879c9dea950ad8c76c7f3d..07ad1dd6f34a17deabd98451785f529cd8dd56d6 100644 (file)
@@ -59,3 +59,16 @@ Description: ENcrypt authenticated traffic with AFS fileserver?
  than DES and thus is not sufficient for highly confidential data, it
  does provide some confidentiality and is likely to make the job of a
  casual attacker significantly more difficult.
+
+Template: openafs-client/dynroot
+Type: boolean
+Default: false
+Description: Dynamically generate the contents of /afs?
+ /afs generally contains an entry for each cell that a client can talk to.  
+ Traditionally, these entries were generated by servers in the client's
+ home cell.  However, OpenAFS clients can generate the contents of /afs
+ dynamically based on the contents of /etc/openafs/CellServDB and DNS.
+ .
+ If you generate /afs dynamically, you may need to create 
+ /etc/openafs/CellAliases to include aliases for common cells.
+ DO NOT SELECT THIS OPTION IF YOU ARE CREATING A NEW CELL.
index 667894f1939cf166247f6ee52f8dbeffd81ae4a3..cfb292bfe8f8e33c4d76cb759b0548aeb577efd9 100644 (file)
@@ -1,6 +1,5 @@
 #!/bin/sh -e
 
-depmod -a
 update-modules
 
 exit 0
index cb558927f7b792b50cfbf595476e683397e86c2c..a393b4554ee549a1bffe8c51a045efc30eb73c48 100644 (file)
@@ -37,13 +37,17 @@ if [ "x$AFS_AFSDB" = "xtrue" ] ; then
     AFSDB="-afsdb"
     else AFSDB=""
     fi
+if [ "x$AFS_DYNROOT" = "xtrue" ] ; then
+    DYNROOT="-dynroot"
+    else DYNROOT=""
+    fi
 
 # Set to "-verbose" for a lot of debugging information from afsd. Only
 # useful for debugging as it prints _a lot_ of information.
 VERBOSE=
 
 # OPTIONS are the options passed to afsd.
-OPTIONS="$OPTIONS $VERBOSE $AFSDB"
+OPTIONS="$OPTIONS $VERBOSE $DYNROOT $AFSDB"
 
 
 # Sample server preferences function. Set server preferences using this.