static const char * const ignore_paths[] = {
"/selinux",
- "/proc/bus/usb",
- "/var/lib/nfs/rpc_pipefs",
- "/proc/fs/nfsd"
+ "/proc/bus/usb"
};
bool mount_point_is_api(const char *path) {
/* Mount all available cgroup controllers that are built into the kernel. */
- if (!(f = fopen("/proc/cgroups", "re")))
- return -ENOENT;
+ if (!(f = fopen("/proc/cgroups", "re"))) {
+ log_error("Failed to enumerate cgroup controllers: %m");
+ return 0;
+ }
/* Ignore the header line */
(void) fgets(buf, sizeof(buf), f);
/* Create a few directories we always want around */
mkdir("/run/systemd", 0755);
+ mkdir("/run/systemd/system", 0755);
return mount_cgroup_controllers();
}