chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pam: downgrade a few log msgs
[elogind.git]
/
src
/
mount-setup.c
diff --git
a/src/mount-setup.c
b/src/mount-setup.c
index 3b97fe4aa57c8d4a24cc0c4b67b951d3c7ef9669..48c32eab3339486c31bf756be816287cd6fbd9ed 100644
(file)
--- a/
src/mount-setup.c
+++ b/
src/mount-setup.c
@@
-64,9
+64,7
@@
static const MountPoint mount_table[] = {
static const char * const ignore_paths[] = {
"/selinux",
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) {
};
bool mount_point_is_api(const char *path) {
@@
-138,8
+136,10
@@
static int mount_cgroup_controllers(void) {
/* Mount all available cgroup controllers that are built into the kernel. */
/* 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);
/* Ignore the header line */
(void) fgets(buf, sizeof(buf), f);
@@
-259,6
+259,7
@@
int mount_setup(void) {
/* Create a few directories we always want around */
mkdir("/run/systemd", 0755);
/* Create a few directories we always want around */
mkdir("/run/systemd", 0755);
+ mkdir("/run/systemd/system", 0755);
return mount_cgroup_controllers();
}
return mount_cgroup_controllers();
}