Skip to content

Commit

Permalink
block: support extroot on already mounted overlay
Browse files Browse the repository at this point in the history
Try to find extroot configuration on already mounted overlay

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
  • Loading branch information
lu-zero authored and dangowrt committed May 28, 2023
1 parent bfe882d commit c1a8d95
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions block.c
Expand Up @@ -1646,6 +1646,11 @@ static int main_extroot(int argc, char **argv)
/* enable LOG_INFO messages */
ulog_threshold(LOG_INFO);

/* try the currently mounted overlay if exists */
err = mount_extroot("/tmp/overlay");
if (!err)
return err;

/*
* Look for "rootfs_data". We will want to mount it and check for
* extroot configuration.
Expand Down

0 comments on commit c1a8d95

Please sign in to comment.