diff options
-rw-r--r-- | src/readahead-common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/readahead-common.c b/src/readahead-common.c index e01ae607c4..a8f6fb30f8 100644 --- a/src/readahead-common.c +++ b/src/readahead-common.c @@ -145,6 +145,9 @@ ReadaheadShared *shared_get(void) { int fd; ReadaheadShared *m = NULL; + mkdir("/dev/.systemd", 0755); + mkdir("/dev/.systemd/readahead", 0755); + if ((fd = open("/dev/.systemd/readahead/shared", O_CREAT|O_RDWR|O_CLOEXEC, 0644)) < 0) { log_error("Failed to create shared memory segment: %m"); goto finish; |