nfs-kernel-server doesn't wait on (luks) encrypted fs on startup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Invalid
|
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
ProcVersionSign
Uname: Linux 4.12.0-12-generic x86_64
NonfreeKernelMo
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)
affects: | nfs-utils (Ubuntu) → systemd (Ubuntu) |
Changed in systemd (Ubuntu): | |
status: | Expired → New |
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?