Ticket #1416 (closed defect: fixed)

Opened 7 years ago

Last modified 7 years ago

openafs 1.6.2.1-1 no longer accepts AFS_DYNROOT=true

Reported by: andersk Owned by:
Priority: high Milestone: The Distant Future
Component: -- Keywords:
Cc: Fixed in version:
Upstream bug:  DebianBug:729353

Description

As of  this change in openafs 1.6.2.1-1 (jessie+, saucy+, and the PPA), the openafs-client initscript no longer accepts AFS_DYNROOT=true, and instead now accepts AFS_DYNROOT=Yes, unlike the other four options. The postinst tries to convert the configuration over, but that doesn’t help if debathena-afs-config is installed later. In that case, dynroot gets disabled, which causes, like,  kernel panics.

I’ve filed  DebianBug:729353 for this being dumb, but unless we can get a fix in saucy, we may need to fix debathena-afs-config to detect AFS_DYNROOT=true or AFS_DYNROOT=Yes as appropriate.

Change History

comment:1 Changed 7 years ago by jdreed

Looks like this got fixed upstream and in the PPA, however some Saucy users ended up screwed. I'll test out a new afs-config that fixes this in the postinst, but we should make sure it doesn't trigger an OMINOUS WARNING.

comment:2 Changed 7 years ago by jdreed

Well, Github is being dumb, so here's a diff:

diff --git a/debian/afs.conf.client.debathena b/debian/afs.conf.client.debathena
index 9f57054..8183da3 100644
--- a/debian/afs.conf.client.debathena
+++ b/debian/afs.conf.client.debathena
@@ -3,3 +3,11 @@ AFS_AFSDB=true
 AFS_CRYPT=true
 AFS_DYNROOT=true
 AFS_FAKESTAT=true
+# Clean up from a broken openafs initscript.  See Debathena #1416
+# and Debian #729353
+openafs_ver=$(dpkg-query -W -f '${Version}' openafs-client)
+if dpkg --compare-versions "$openafs_ver" ge 1.6.2.1-1~ &&
+    dpkg --compare-versions "$openafs_ver" lt 1.6.6-1~; then
+    AFS_DYNROOT=Yes
+fi
+unset openafs_ver
Last edited 7 years ago by jdreed (previous) (diff)

comment:3 Changed 7 years ago by jdreed

  • Status changed from new to committed

comment:4 Changed 7 years ago by jdreed

  • Status changed from committed to development

comment:5 Changed 7 years ago by jdreed

  • Status changed from development to proposed

comment:6 Changed 7 years ago by jdreed

  • Status changed from proposed to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.