From: Jo-Philipp Wich Date: Fri, 26 Jul 2013 08:57:30 +0000 (+0200) Subject: block: stage extroot mounts in /tmp/extroot since /tmp/overlay might be in use by... X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=beadcb4dcee83fbf23c481725602ecd82470ad0d;p=oweals%2Fubox.git block: stage extroot mounts in /tmp/extroot since /tmp/overlay might be in use by jffs2 already --- 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;