From: Luca Barbato Date: Sat, 4 Mar 2023 10:46:33 +0000 (+0100) Subject: block: support skipping uuid check X-Git-Url: http://git.openwrt.org/ubox.git?a=commitdiff_plain;h=3a07943e1e60699ba952e605f0cf23c82de356cb;p=project%2Ffstools.git block: support skipping uuid check Add a mean to avoid the uuid check by checking for the presence of /etc/.extroot-default in the overlay. Signed-off-by: Luca Barbato --- diff --git a/block.c b/block.c index c015fe1..9b7c49c 100644 --- a/block.c +++ b/block.c @@ -1479,6 +1479,10 @@ static int check_extroot(char *path) FILE *fp; int err; + snprintf(tag, sizeof(tag), "%s/etc/.extroot-default", path); + if (stat(tag, &s)) + return 0; + err = find_root_dev(devpath, sizeof(devpath)); if (err) err = find_block_mtd("\"rootfs\"", devpath, sizeof(devpath));