From 06fa679bd5b3f3fb86ef36b19c8b3d99a1007a6f Mon Sep 17 00:00:00 2001 From: InsanePrawn Date: Fri, 22 Oct 2021 03:47:56 +0200 Subject: [PATCH] chroot.py: add Chroot.reset() --- chroot.py | 4 ++++ 1 file changed, 4 insertions(+) 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] = {},