chroot.py: add Chroot.reset()

This commit is contained in:
InsanePrawn 2021-10-22 03:47:56 +02:00
parent d84e82ec64
commit 06fa679bd5

View file

@ -280,6 +280,10 @@ class Chroot:
self.umount('proc')
self.active = False
def reset(self):
self.initialized = False
self.initialize()
def run_cmd(self,
script: str,
inner_env: dict[str, str] = {},