From 2c9cf5074642459b37f19a2d4c6bc0233248d3a4 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Thu, 7 Mar 2013 19:39:55 -0500 Subject: 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 --- configure.ac | 1 + 1 file changed, 1 insertion(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index ef3a060c45e0..54b8dff08bb2 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], [], [], -- cgit 1.4.1