diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-01-22 10:03:53 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-01-23 14:35:56 +0100 |
commit | 573d6ae5bb909e1c887be558953d1fb2a0f7335a (patch) | |
tree | 80f6b9231751d98fcd81c63782bb7d36e071a158 | |
parent | 7c74d60baed1deb3b23ed13c184344b59348dc15 (diff) | |
download | barebox-573d6ae5bb909e1c887be558953d1fb2a0f7335a.tar.gz barebox-573d6ae5bb909e1c887be558953d1fb2a0f7335a.tar.xz |
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>
-rw-r--r-- | common/startup.c | 1 |
1 files changed, 1 insertions, 0 deletions
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)) { |