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 1eecE2-0005gW-DJ for barebox@lists.infradead.org; Thu, 25 Jan 2018 07:45:37 +0000 From: Sascha Hauer Date: Thu, 25 Jan 2018 08:45:13 +0100 Message-Id: <20180125074520.10320-2-s.hauer@pengutronix.de> In-Reply-To: <20180125074520.10320-1-s.hauer@pengutronix.de> References: <20180125074520.10320-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/8] 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.15.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox