Print error on startup when binder/ashmem are missing and fail
This commit is contained in:
parent
2e3a82c429
commit
c3b2e88960
1 changed files with 5 additions and 0 deletions
|
|
@ -104,6 +104,11 @@ anbox::cmds::Run::Run(const BusFactory &bus_factory)
|
||||||
trap->stop();
|
trap->stop();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!fs::exists("/dev/binder") || !fs::exists("/dev/ashmem")) {
|
||||||
|
ERROR("Failed to start as either binder or ashmem kernel drivers are not loaded");
|
||||||
|
return EXIT_FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
utils::ensure_paths({
|
utils::ensure_paths({
|
||||||
SystemConfiguration::instance().socket_dir(),
|
SystemConfiguration::instance().socket_dir(),
|
||||||
SystemConfiguration::instance().input_device_dir(),
|
SystemConfiguration::instance().input_device_dir(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue