From 573d6ae5bb909e1c887be558953d1fb2a0f7335a Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 22 Jan 2018 10:03:53 +0100 Subject: startup: create /tmp Some commands create temporary files in /. Create /tmp to offer these commands an appropriate place for storing temporary files. Signed-off-by: Sascha Hauer --- common/startup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/startup.c b/common/startup.c index 432be67cd6..8553849cb3 100644 --- a/common/startup.c +++ b/common/startup.c @@ -54,6 +54,7 @@ static int mount_root(void) { mount("none", "ramfs", "/", NULL); mkdir("/dev", 0); + mkdir("/tmp", 0); mount("none", "devfs", "/dev", NULL); if (IS_ENABLED(CONFIG_FS_EFIVARFS)) { -- cgit v1.2.3