From 9230a51b642fd2cdf1121d93fb48758e0e048811 Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Mon, 25 Feb 2002 20:36:13 +0000 Subject: [PATCH] Add dynroot support --- debian/openafs-client.config | 6 ++++++ debian/openafs-client.postinst | 3 ++- debian/openafs-client.templates | 13 +++++++++++++ debian/postinst.mod | 1 - src/afsd/afs.conf.linux | 6 +++++- 5 files changed, 26 insertions(+), 3 deletions(-) diff --git a/debian/openafs-client.config b/debian/openafs-client.config index 1d1fdf1cc..3a8b6d15a 100644 --- a/debian/openafs-client.config +++ b/debian/openafs-client.config @@ -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 diff --git a/debian/openafs-client.postinst b/debian/openafs-client.postinst index f7ebdbab3..010673608 100644 --- a/debian/openafs-client.postinst +++ b/debian/openafs-client.postinst @@ -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) diff --git a/debian/openafs-client.templates b/debian/openafs-client.templates index 8a2542929..07ad1dd6f 100644 --- a/debian/openafs-client.templates +++ b/debian/openafs-client.templates @@ -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. diff --git a/debian/postinst.mod b/debian/postinst.mod index 667894f19..cfb292bfe 100644 --- a/debian/postinst.mod +++ b/debian/postinst.mod @@ -1,6 +1,5 @@ #!/bin/sh -e -depmod -a update-modules exit 0 diff --git a/src/afsd/afs.conf.linux b/src/afsd/afs.conf.linux index cb558927f..a393b4554 100644 --- a/src/afsd/afs.conf.linux +++ b/src/afsd/afs.conf.linux @@ -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. -- 2.39.5