summaryrefslogtreecommitdiff
path: root/src/mount-setup.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-03-09 22:45:47 +0100
committerLennart Poettering <lennart@poettering.net>2011-03-09 22:45:47 +0100
commitb925e72633bf98438f56a140520e07ec8c959e46 (patch)
tree7daba41fbb22be20a8a094fa792407a036b26ff1 /src/mount-setup.c
parent29d958ce2ba49794fa92dd77b2f9a9bdc941f493 (diff)
dev: use /dev/.run/systemd as runtime directory, instead of /dev/.systemd
Diffstat (limited to 'src/mount-setup.c')
-rw-r--r--src/mount-setup.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mount-setup.c b/src/mount-setup.c
index 09ee07f820..d740d4f357 100644
--- a/src/mount-setup.c
+++ b/src/mount-setup.c
@@ -242,7 +242,7 @@ int mount_setup(void) {
* appropriate labels, after mounting. The other virtual API
* file systems do not need. */
- if (unlink("/dev/.systemd/relabel-devtmpfs") >= 0)
+ if (unlink("/dev/.systemd-relabel-devtmpfs") >= 0)
nftw("/dev", nftw_cb, 64, FTW_MOUNT|FTW_PHYS);
/* Create a few default symlinks, which are normally created
@@ -252,5 +252,9 @@ int mount_setup(void) {
NULSTR_FOREACH_PAIR(j, k, symlinks)
symlink_and_label(j, k);
+ /* Create a few directories we always want around */
+ mkdir("/dev/.run/systemd", 0755);
+ mkdir("/dev/.run/systemd/ask-password", 0755);
+
return mount_cgroup_controllers();
}