From 3577de7ac39c54821e1d1d946db65e109dfb94b2 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Tue, 24 Jun 2014 13:30:11 +0200 Subject: nspawn: create essential base directories at system bootup This allows us to bootup a rootfs with a /usr directory only. --- src/core/machine-id-setup.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/machine-id-setup.c') 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; -- cgit v1.2.3-54-g00ecf