Skip to content

Commit

Permalink
block: support skipping uuid check
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
lu-zero authored and dangowrt committed May 28, 2023
1 parent 56a9b4e commit 3a07943
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions block.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 3a07943

Please sign in to comment.