Package: openafs-client
Version: 1.6.0-1
Severity: wishlist
Tags: patch

Please support selecting sparse dynroot configuration from debconf.
Patch attached.

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1,
'experimental') Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39.1-201003202349 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages openafs-client depends on:
ii  debconf [debconf-2.0]  1.5.40 
ii  libc6                  2.13-21
ii  libncurses5            5.9-2  

Versions of packages openafs-client recommends:
ii  lsof                  4.81.dfsg.1-1
ii  openafs-modules-dkms  1.6.0-1      

Versions of packages openafs-client suggests:
ii  openafs-doc   <none> 
ii  openafs-krb5  1.6.0-1


-- debconf-show failed
From 67cf0f85cf37828c807013fb19b300f36c6f2bf0 Mon Sep 17 00:00:00 2001
From: Jakob Haufe <su...@sur5r.net>
Date: Thu, 6 Oct 2011 18:23:42 +0200
Subject: [PATCH] Add sparse option to dynroot debconf question

---
 debian/openafs-client.init      |    4 +++-
 debian/openafs-client.templates |   10 ++++++++--
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/debian/openafs-client.init b/debian/openafs-client.init
index f91529b..f68d5a0 100755
--- a/debian/openafs-client.init
+++ b/debian/openafs-client.init
@@ -119,8 +119,10 @@ choose_afsd_options() {
     if is_on $AFS_AFSDB ; then
         AFSD_OPTIONS="$AFSD_OPTIONS -afsdb"
     fi
-    if is_on $AFS_DYNROOT ; then
+    if [ x"$AFS_DYNROOT" = x"Yes" ] ; then
         AFSD_OPTIONS="$AFSD_OPTIONS -dynroot"
+    elif [ x"$AFS_DYNROOT" = x"Sparse" ] ; then
+        AFSD_OPTIONS="$AFSD_OPTIONS -dynroot-sparse"
     fi
     if is_on $AFS_FAKESTAT ; then
         AFSD_OPTIONS="$AFSD_OPTIONS -fakestat"
diff --git a/debian/openafs-client.templates b/debian/openafs-client.templates
index 06d0cdd..5aa3699 100644
--- a/debian/openafs-client.templates
+++ b/debian/openafs-client.templates
@@ -60,8 +60,9 @@ _Description: Encrypt authenticated traffic with AFS fileserver?
  significantly more difficult.
 
 Template: openafs-client/dynroot
-Type: boolean
-Default: true
+Type: select
+Choices: No, Yes, Sparse
+Default: Yes
 _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
@@ -72,6 +73,11 @@ _Description: Dynamically generate the contents of /afs?
  /etc/openafs/CellAlias to include aliases for common cells.  (The syntax
  of this file is one line per alias, with the cell name, a space, and then
  the alias for that cell.)
+ .
+ In sparse dynroot mode, cells other than the local cell are not shown by
+ default until a lookup occurs. Cell aliases as set in the CellAlias file
+ are shown as normal, although they may appear to be dangling links until
+ traversed.
 
 Template: openafs-client/fakestat
 Type: boolean
-- 
1.7.6.3

Attachment: signature.asc
Description: PGP signature

Reply via email to