diff options
author | Maxime Hadjinlian <maxime.hadjinlian@gmail.com> | 2015-07-11 16:48:20 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-07-13 02:08:59 +0200 |
commit | aec5af98caf65b8ad08db4f372527a0503bb381c (patch) | |
tree | 9f0879c17a9670eb7a6f0e848a8dedde79bed939 /package/nfs-utils/nfs-utils.mk | |
parent | 182520a8af734c735c4dbdff29dc07af1d615a0a (diff) | |
download | buildroot-aec5af98caf65b8ad08db4f372527a0503bb381c.tar.gz buildroot-aec5af98caf65b8ad08db4f372527a0503bb381c.zip |
nfs_utils: Fix for read-only rootfs
In order to work on a read-only rootfs, nfs_utils would like to write
stuff to /var/lib/nfs, since it's not a tmpfs, it won't work.
Instead of doing little dances around the filesystem, tell nfs_utils to
use /run/nfs for everyone.
Modify the startup script accordingly.
Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/nfs-utils/nfs-utils.mk')
-rw-r--r-- | package/nfs-utils/nfs-utils.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/nfs-utils/nfs-utils.mk b/package/nfs-utils/nfs-utils.mk index cec21e8de3..115a133f22 100644 --- a/package/nfs-utils/nfs-utils.mk +++ b/package/nfs-utils/nfs-utils.mk @@ -21,6 +21,7 @@ NFS_UTILS_CONF_OPTS = \ --disable-uuid \ --disable-ipv6 \ --without-tcp-wrappers \ + --with-statedir=/run/nfs \ --with-rpcgen=internal NFS_UTILS_TARGETS_$(BR2_PACKAGE_NFS_UTILS_RPCDEBUG) += usr/sbin/rpcdebug @@ -36,8 +37,8 @@ endif define NFS_UTILS_INSTALL_FIXUP rm -f $(NFS_UTILS_TARGETS_) + touch $(TARGET_DIR)/etc/exports endef - NFS_UTILS_POST_INSTALL_TARGET_HOOKS += NFS_UTILS_INSTALL_FIXUP define NFS_UTILS_INSTALL_INIT_SYSV |