diff --git a/chroot.py b/chroot.py index 696fb0b..3316a2f 100644 --- a/chroot.py +++ b/chroot.py @@ -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] = {},