From: Luca Barbato Date: Tue, 27 Dec 2022 09:05:15 +0000 (+0100) Subject: block: support extroot on already mounted overlay X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c1a8d95116672e0ab85ca7f1d67e1a2886035c8b;p=project%2Ffstools.git block: support extroot on already mounted overlay Try to find extroot configuration on already mounted overlay Signed-off-by: Luca Barbato --- diff --git a/block.c b/block.c index 4b45200..28eac59 100644 --- a/block.c +++ b/block.c @@ -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.