summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index f609cfa..b543d8e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -177,6 +177,13 @@ int erebos_tester_isolate_fs( const char * rwdir )
return -1;
}
+ ret = umount2( "/run/old_root", MNT_DETACH );
+ if( ret < 0 ){
+ fprintf( stderr, "failed to detach /run/old_root: %s\n", strerror( errno ));
+ free( cwd );
+ return -1;
+ }
+
ret = chdir( cwd );
if( ret < 0 ){
fprintf( stderr, "failed to chdir to %s: %s\n", cwd, strerror( errno ));