JDK-8165323 : (fs) Files.getFileStore fails with "Mount point not found" in chroot environment
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
Matthias Klose reports an issue building JDK 9 on Linux in a chroot environment then the kernel is >= 3.19
It manifests as a build failure because jlink uses FileStore.
The patch fixes the build failure but does not address the inability to obtain a FileStore. A separate issue JDK-8166162 was filed to track that specific problem.
Thread where issue was reported continues here:
I was able to reproduce the failure in a chroot on Ubuntu 16.04 desktop amd64 following the instructions at https://help.ubuntu.com/community/BasicChroot with
sudo mount -o bind /proc /var/chroot/proc
in the "Setting-up the chroot" section replaced with
sudo mount -t proc none /var/chroot/proc
and doing 'make images':
Error: jdk.tools.jlink.plugin.PluginException: java.io.IOException: Mount point not found
InterimImage.gmk:47: recipe for target '/home/jdk9-dev/build/linux-x86_64-normal-server-fastdebug/support/interim-image/bin/java' failed
make: *** [/home/jdk9-dev/build/linux-x86_64-normal-server-fastdebug/support/interim-image/bin/java] Error 1
make: *** Deleting file '/home/jdk9-dev/build/linux-x86_64-normal-server-fastdebug/support/interim-image/bin/java'
make: *** [interim-image] Error 1
make: *** Waiting for unfinished jobs....
make/Main.gmk:386: recipe for target 'interim-image' failed
In the foregoing "/home" is actually "/var/chroot/home."