[PATCH 1/8] startup: create /tmp
Sascha Hauer
s.hauer at pengutronix.de
Wed Jan 24 23:45:13 PST 2018
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 at pengutronix.de>
---
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)) {
--
2.15.1
More information about the barebox
mailing list