dev-setup: allow a path prefix for use in chroots

With this adjustment, we can reuse this code elsewhere, such as in
nspawn.
This commit is contained in:
Dave Reisner
2012-08-21 17:19:35 +02:00
committed by Lennart Poettering
parent 50b3e64e27
commit 8f0e73f250
4 changed files with 17 additions and 10 deletions
+1 -1
View File
@@ -398,7 +398,7 @@ int mount_setup(bool loaded_policy) {
/* Create a few default symlinks, which are normally created
* by udevd, but some scripts might need them before we start
* udevd. */
dev_setup();
dev_setup("");
/* Mark the root directory as shared in regards to mount
* propagation. The kernel defaults to "private", but we think