nfs-kernel-server doesn't wait on (luks) encrypted fs on startup

Bug #1712639 reported by Michael Neuffer
This bug affects 1 person
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)

Bug Description

nfs-kernel-server fails on startup when the exported FS is on an encrypted partition that requires a password entry.

Currently nfs-kernel-server must be restarted in order to export the FS.

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: nfs-kernel-server 1:1.3.4-2.1ubuntu1
ProcVersionSignature: Ubuntu 4.12.0-12.13-generic 4.12.8
Uname: Linux 4.12.0-12-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia
ApportVersion: 2.20.6-0ubuntu6
Architecture: amd64
CurrentDesktop: XFCE
Date: Wed Aug 23 20:31:02 2017
InstallationDate: Installed on 2014-05-30 (1181 days ago)
InstallationMedia: Xubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140416.2)
SourcePackage: nfs-utils
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Michael Neuffer (neuffer) wrote :
Revision history for this message
Steve Langasek (vorlon) wrote :

The nfs-server.service unit declares a dependency on the local fs being mounted before it starts:


So why does this not catch your encrypted partition?

Changed in nfs-utils (Ubuntu):
status: New → Incomplete
Revision history for this message
Michael Neuffer (neuffer) wrote :

Hi Steve

I don't know.
I guess it only waits until gets started, but not until it and all its dependencies finish. It takes a while until I have entered the passphrase

It still worked a few weeks ago.
I don't trust systemd.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for nfs-utils (Ubuntu) because there has been no activity for 60 days.]

Changed in nfs-utils (Ubuntu):
status: Incomplete → Expired
Steve Langasek (vorlon)
affects: nfs-utils (Ubuntu) → systemd (Ubuntu)
Changed in systemd (Ubuntu):
status: Expired → New
Revision history for this message
Michael Neuffer (neuffer) wrote :

The problem still exists.

Revision history for this message
Dan Streetman (ddstreet) wrote :

please reopen if this is still an issue

Changed in systemd (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers