This repository was archived by the owner on Oct 6, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/en/1.0.0/ )
5
5
and this project adheres to [ Semantic Versioning] ( http://semver.org/spec/v2.0.0.html ) .
6
6
7
+ ## [ Unreleased]
8
+
9
+ ### Fixed
10
+
11
+ * baked-in ` /etc/exports ` is not properly recognized ([ #9 ] ( https://github.com/ehough/docker-nfs-server/issues/9 ) )
12
+
7
13
## [ 1.1.0] - 2018-06-06
8
14
9
15
### Added
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ RUN apt-get update
12
12
apt-get clean && \
13
13
rm -rf /var/lib/apt/lists && \
14
14
\
15
- # remove the default idmapd.conf
16
- rm -v /etc/idmapd.conf
15
+ # remove the default config files
16
+ rm -v /etc/idmapd.conf /etc/exports
17
17
18
18
# http://wiki.linux-nfs.org/wiki/index.php/Nfsv4_configuration
19
19
RUN mkdir -p /var/lib/nfs/rpc_pipefs && \
Original file line number Diff line number Diff line change @@ -303,8 +303,15 @@ init_trap() {
303
303
304
304
init_exports () {
305
305
306
+ # first, see if it's bind-mounted
306
307
if mount | grep -Eq " ^[^ ]+ on $PATH_FILE_ETC_EXPORTS type " ; then
307
- log " $PATH_FILE_ETC_EXPORTS already exists in the container"
308
+ log " $PATH_FILE_ETC_EXPORTS is bind-mounted"
309
+ return
310
+ fi
311
+
312
+ # maybe it's baked-in to the image
313
+ if [[ -f $PATH_FILE_ETC_EXPORTS && -r $PATH_FILE_ETC_EXPORTS && -s $PATH_FILE_ETC_EXPORTS ]]; then
314
+ log " $PATH_FILE_ETC_EXPORTS is baked into the image"
308
315
return
309
316
fi
310
317
You can’t perform that action at this time.
0 commit comments