aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2013-03-07 19:39:55 -0500
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-03-25 19:00:16 +0100
commit2c9cf5074642459b37f19a2d4c6bc0233248d3a4 (patch)
treef0d7e719c13a9669ddfe7fa2a26b434c6d45a466 /configure.ac
parentc3fc60d9369fc802b33f75d2d9cd6ef22b916112 (diff)
makeStoreWritable: Use statvfs instead of /proc/self/mountinfo to find out if /nix/store is a read-only bind mount
/nix/store could be a read-only bind mount even if it is / in its own filesystem, so checking the 4th field in mountinfo is insufficient. Signed-off-by: Shea Levy <shea@shealevy.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index ef3a060c4..54b8dff08 100644
--- a/configure.ac
+++ b/configure.ac
@@ -106,6 +106,7 @@ AC_LANG_POP(C++)
# Check for chroot support (requires chroot() and bind mounts).
AC_CHECK_FUNCS([chroot])
AC_CHECK_FUNCS([unshare])
+AC_CHECK_FUNCS([statvfs])
AC_CHECK_HEADERS([sched.h])
AC_CHECK_HEADERS([sys/param.h])
AC_CHECK_HEADERS([sys/mount.h], [], [],