diff options
| author | Luca Barbato | 2022-12-27 09:05:15 +0000 |
|---|---|---|
| committer | Daniel Golle | 2023-05-28 16:01:12 +0000 |
| commit | c1a8d95116672e0ab85ca7f1d67e1a2886035c8b (patch) | |
| tree | 07b10a948afa885c1402025565971bdb10044bef | |
| parent | bfe882d5ff4eeebb8f57c8a0f9b9e767a57870d8 (diff) | |
| download | fstools-c1a8d95116672e0ab85ca7f1d67e1a2886035c8b.tar.gz | |
block: support extroot on already mounted overlay
Try to find extroot configuration on already mounted overlay
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
| -rw-r--r-- | block.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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. |