chroot.py: add Chroot.reset()
This commit is contained in:
parent
d84e82ec64
commit
06fa679bd5
1 changed files with 4 additions and 0 deletions
|
@ -280,6 +280,10 @@ class Chroot:
|
||||||
self.umount('proc')
|
self.umount('proc')
|
||||||
self.active = False
|
self.active = False
|
||||||
|
|
||||||
|
def reset(self):
|
||||||
|
self.initialized = False
|
||||||
|
self.initialize()
|
||||||
|
|
||||||
def run_cmd(self,
|
def run_cmd(self,
|
||||||
script: str,
|
script: str,
|
||||||
inner_env: dict[str, str] = {},
|
inner_env: dict[str, str] = {},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue