summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init/service.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/service.cpp b/init/service.cpp
index 95b37abe2..4c2747e64 100644
--- a/init/service.cpp
+++ b/init/service.cpp
@@ -130,7 +130,7 @@ Result<Success> Service::SetUpMountNamespace() const {
if (umount2("/sys", MNT_DETACH) == -1) {
return ErrnoError() << "Could not umount(/sys)";
}
- if (mount("", "/sys", "sys", kSafeFlags, "") == -1) {
+ if (mount("", "/sys", "sysfs", kSafeFlags, "") == -1) {
return ErrnoError() << "Could not mount(/sys)";
}
}