mirror of
https://github.com/NixOS/nix
synced 2025-07-08 02:43:54 +02:00
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>
This commit is contained in:
parent
c3fc60d936
commit
2c9cf50746
2 changed files with 14 additions and 22 deletions
|
@ -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], [], [],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue