summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Barbato2023-03-04 10:46:33 +0000
committerDaniel Golle2023-05-28 16:03:05 +0000
commit3a07943e1e60699ba952e605f0cf23c82de356cb (patch)
treea0bcf98ec3150b1d7221f3a7dd41259d20832d05
parent56a9b4e7e39514813208b776605899c80a37a7f3 (diff)
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 <lu_zero@gentoo.org>
-rw-r--r--block.c4
1 files changed, 4 insertions, 0 deletions
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));