Skip to content

Commit fad5fb1

Browse files
Nisha Krnjudge
authored andcommitted
fix: unmount rootfs only for fuse and overlay2
In the debug run script, unmount the root filesystem only when the driver used is 'fuse' or 'overlay2'. If using the default bulk copy driver, this is not needed. Signed-off-by: Nisha K <[email protected]>
1 parent 0b87b0c commit fad5fb1

File tree

1 file changed

+2
-1
lines changed
  • tern/analyze/default/debug

1 file changed

+2
-1
lines changed

tern/analyze/default/debug/run.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ def execute_invoke(image_obj, args):
136136
# invoke commands in chroot
137137
invoke_script(args)
138138
# undo the mounts
139-
rootfs.unmount_rootfs()
139+
if args.driver in ('fuse', 'overlay2'):
140+
rootfs.unmount_rootfs()
140141
# cleanup
141142
rootfs.clean_up()
142143
if not args.keep_wd:

0 commit comments

Comments
 (0)