diff options
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/build.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 973e7a122f5f..e846995f76bb 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -2020,7 +2020,10 @@ void DerivationGoal::initChild() createDirs(chrootRootDir + "/dev/pts"); Strings ss; ss.push_back("/dev/full"); - ss.push_back("/dev/kvm"); +#ifdef __linux__ + if (pathExists("/dev/kvm")) + ss.push_back("/dev/kvm"); +#endif ss.push_back("/dev/null"); ss.push_back("/dev/random"); ss.push_back("/dev/tty"); |