src/ansible_gentooimgr/

This commit is contained in:
2023-12-26 01:37:16 +00:00
parent deef1d6f22
commit 994e13dae3
30 changed files with 7894 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import sys
from subprocess import Popen, PIPE
import gentooimgr.chroot
def command(config, *args):
gentooimgr.chroot.bind()
for a in args:
proc = Popen(a, shell=True, stdout=PIPE, stderr=PIPE)
stdout, stderr = proc.communicate()
if proc.returncode != 0:
sys.stderr.write(f"{stderr}\n")
break
gentooimgr.chroot.unbind()