You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 22, 2023. It is now read-only.
Hi I am currently trying to use your module to bootstrap distributions. I am using a Popen wrapper to run the commands in the chroot. The command run successfully but the never exit the chroot.
def run(cmd):
''' subprocess.Popen wrapper '''
process = Popen(cmd, universal_newlines=True,
shell=True, stdout=PIPE,stderr=STDOUT)
while True:
output = process.stdout.readline()
if output == '' and process.poll() is not None:
breakif output:
print(output.strip())
rc = process.poll()
return rc
Chroot :
chroot = Chroot(self.distro_dir)
with chroot:
print("Chrooting in {}".format(self.distro_dir))
forcmdin self.script:
run(cmd)
print("Chroot process done !")