From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eeFkr-0005Ti-Si for barebox@lists.infradead.org; Wed, 24 Jan 2018 07:46:01 +0000 From: Sascha Hauer Date: Wed, 24 Jan 2018 08:45:28 +0100 Message-Id: <20180124074534.7966-2-s.hauer@pengutronix.de> In-Reply-To: <20180124074534.7966-1-s.hauer@pengutronix.de> References: <20180124074534.7966-1-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 1/7] startup: create /tmp To: Barebox List 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)) { -- 2.11.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox