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

Bug #1712639 reported by Michael Neuffer on 2017-08-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
Undecided
Unassigned

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)

Michael Neuffer (neuffer) wrote :
Steve Langasek (vorlon) wrote :

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

After= local-fs.target

So why does this not catch your encrypted partition?

Changed in nfs-utils (Ubuntu):
status: New → Incomplete
Michael Neuffer (neuffer) wrote :

Hi Steve

I don't know.
I guess it only waits until local-fs.target 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.

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) on 2017-10-24
affects: nfs-utils (Ubuntu) → systemd (Ubuntu)
Changed in systemd (Ubuntu):
status: Expired → New
Michael Neuffer (neuffer) wrote :

The problem still exists.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers