On Wed, 2024-07-03 at 09:53 +0200, Salvatore Bonaccorso wrote:
> Control: tags -1 + moreinfo
> 
> Hi,
> 
> On Thu, Jun 27, 2024 at 11:37:44AM +0200, Hristo Venev wrote:
> > Package: nfs-kernel-server
> > Version: 1:2.6.4-5
> > Severity: important
> > X-Debbugs-Cc: hri...@venev.name
> > 
> > Dear Maintainer,
> > 
> > When updating nfs-kernel-server, /var/lib/nfs/etab is wiped, which
> > results in all exports being removed until the NFS server is
> > restarted.
> > 
> > This is a major issue when `policy-rc.d` prohibits restarts, as in
> > that
> > case the restart does not happen automatically. It is also an issue
> > when
> > the policy permits restarts, as there still exists a time window
> > during
> > which all exported fileystems are missing.
> 
> Files are not removed on 'upgrade', can you post the log where this
> has happened to you?
> 
> if [ "$1" != upgrade ]
> then
>     rm -f /var/lib/nfs/etab   \
>           /var/lib/nfs/rmtab
> fi
> 
> I would like to understand how/when /var/lib/nfs/etab got removed on
> your upgrade.

It gets wiped reliably on every reinstall of the package. The easiest
way to observe is to:

1. Have a non-empty etab (so that it being wiped is easier to observe)
2. Set a `/usr/sbin/policy-rc.d` that prevents service restarts (`exit
101`)
3. Reinstall `nfs-kernel-server`
4. Observe the etab become empty, resulting in NFS exports not working
anymore

I believe this happens because the etab and rmtab are contained in the
`.deb` package and are not marked as conffiles.

> 
> Regards,
> Salvatore

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to