diff options
author | Shea Levy <shea@shealevy.com> | 2013-03-08T00·39-0500 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-03-25T18·00+0100 |
commit | 2c9cf5074642459b37f19a2d4c6bc0233248d3a4 (patch) | |
tree | f0d7e719c13a9669ddfe7fa2a26b434c6d45a466 /configure.ac | |
parent | c3fc60d9369fc802b33f75d2d9cd6ef22b916112 (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.ac | 1 |
1 files changed, 1 insertions, 0 deletions
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], [], [], |