diff options
| author | Luca Barbato | 2023-03-04 10:46:33 +0000 |
|---|---|---|
| committer | Daniel Golle | 2023-05-28 16:03:05 +0000 |
| commit | 3a07943e1e60699ba952e605f0cf23c82de356cb (patch) | |
| tree | a0bcf98ec3150b1d7221f3a7dd41259d20832d05 | |
| parent | 56a9b4e7e39514813208b776605899c80a37a7f3 (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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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)); |