umount_target: umount fusectl filesystem
Typically mounted on /sys/fs/fuse/connections. Change-Id: Ibb681d67c23cbeb8e48465f1b45cbd244add0ade
This commit is contained in:
parent
07560a9fc3
commit
00cedeaf3b
@ -418,7 +418,8 @@ class Manager(object):
|
||||
def umount_target(self, chroot, pseudo=True):
|
||||
LOG.debug('Umounting target file systems: %s', chroot)
|
||||
if pseudo:
|
||||
for path in ('/proc', '/dev', '/sys'):
|
||||
# umount fusectl (typically mounted at /sys/fs/fuse/connections)
|
||||
for path in ('/proc', '/dev', '/sys/fs/fuse/connections', '/sys'):
|
||||
fu.umount_fs(chroot + path)
|
||||
for fs in self.driver.partition_scheme.fs_sorted_by_depth(
|
||||
reverse=True):
|
||||
|
@ -763,6 +763,7 @@ none /run/shm tmpfs rw,nosuid,nodev 0 0"""
|
||||
self.mgr.umount_target('fake_chroot')
|
||||
self.assertEqual([mock.call('fake_chroot/proc'),
|
||||
mock.call('fake_chroot/dev'),
|
||||
mock.call('fake_chroot/sys/fs/fuse/connections'),
|
||||
mock.call('fake_chroot/sys'),
|
||||
mock.call('fake_chroot/var/lib'),
|
||||
mock.call('fake_chroot/boot'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user