summaryrefslogtreecommitdiff
path: root/src/core/machine-id-setup.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2014-06-24 13:30:11 +0200
committerKay Sievers <kay@vrfy.org>2014-06-24 15:41:03 +0200
commit3577de7ac39c54821e1d1d946db65e109dfb94b2 (patch)
tree2bfdabbd233a5b1ce3685a033cde65e5d412f01e /src/core/machine-id-setup.c
parent96e264415033ef9b07c062850aed4cac316f20b8 (diff)
nspawn: create essential base directories at system bootup
This allows us to bootup a rootfs with a /usr directory only.
Diffstat (limited to 'src/core/machine-id-setup.c')
-rw-r--r--src/core/machine-id-setup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/machine-id-setup.c b/src/core/machine-id-setup.c
index e2e6d02269..f154800484 100644
--- a/src/core/machine-id-setup.c
+++ b/src/core/machine-id-setup.c
@@ -181,6 +181,7 @@ int machine_id_setup(const char *root) {
* will be owned by root it doesn't matter much, but maybe
* people look. */
+ mkdir_parents(etc_machine_id, 0755);
fd = open(etc_machine_id, O_RDWR|O_CREAT|O_CLOEXEC|O_NOCTTY, 0444);
if (fd >= 0)
writable = true;