[PATCH 1/7] startup: create /tmp
Sascha Hauer
s.hauer at pengutronix.de
Tue Jan 23 23:45:28 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.11.0
More information about the barebox
mailing list