From beadcb4dcee83fbf23c481725602ecd82470ad0d Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 26 Jul 2013 10:57:30 +0200 Subject: [PATCH] block: stage extroot mounts in /tmp/extroot since /tmp/overlay might be in use by jffs2 already --- block.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/block.c b/block.c index b5bc494..e8f7d3c 100644 --- a/block.c +++ b/block.c @@ -663,7 +663,7 @@ static int check_extroot(char *path) if (!strcmp(pr->dev, fs)) { struct stat s; FILE *fp = NULL; - char tag[32]; + char tag[64]; char uuid[32] = { 0 }; snprintf(tag, sizeof(tag), "%s/etc/.extroot-uuid", path); @@ -697,8 +697,8 @@ static int check_extroot(char *path) static int mount_extroot(char *cfg) { - char overlay[] = "/tmp/overlay"; - char mnt[] = "/tmp/mnt"; + char overlay[] = "/tmp/extroot/overlay"; + char mnt[] = "/tmp/extroot/mnt"; char *path = mnt; struct blkid_struct_probe *pr; struct mount *m; -- 2.11.0