diff --git a/init/reboot.cpp b/init/reboot.cpp index 49baf9e68..4699eca3b 100644 --- a/init/reboot.cpp +++ b/init/reboot.cpp @@ -853,7 +853,7 @@ static Result DoUserspaceReboot() { sub_reason = "apex"; return result; } - if (!SwitchToMountNamespaceIfNeeded(NS_BOOTSTRAP)) { + if (!SwitchToMountNamespaceIfNeeded(NS_BOOTSTRAP).ok()) { sub_reason = "ns_switch"; return Error() << "Failed to switch to bootstrap namespace"; }