summaryrefslogtreecommitdiffstats
path: root/common/startup.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-01-22 10:03:53 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-01-23 14:35:56 +0100
commit573d6ae5bb909e1c887be558953d1fb2a0f7335a (patch)
tree80f6b9231751d98fcd81c63782bb7d36e071a158 /common/startup.c
parent7c74d60baed1deb3b23ed13c184344b59348dc15 (diff)
downloadbarebox-573d6ae5bb909e1c887be558953d1fb2a0f7335a.tar.gz
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 <s.hauer@pengutronix.de>
Diffstat (limited to 'common/startup.c')
-rw-r--r--common/startup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/startup.c b/common/startup.c
index 432be67..8553849 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)) {