From 3a07943e1e60699ba952e605f0cf23c82de356cb Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Sat, 4 Mar 2023 11:46:33 +0100 Subject: [PATCH] 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 --- block.c | 4 ++++ 1 file changed, 4 insertions(+) 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)); -- 2.30.2