deb
This commit is contained in:
parent
deb709d488
commit
fb180e8084
1 changed files with 17 additions and 0 deletions
17
deb.py
Normal file
17
deb.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
import subprocess
|
||||
|
||||
BOOTSTRAP_ARCHITECTURE = 'amd64'
|
||||
BOOTSTRAP_VARIANT = 'minbase'
|
||||
|
||||
|
||||
def bootstrap(root_path: str, suite: str, mirror_location: str):
|
||||
command = [
|
||||
'debootstrap',
|
||||
'--arch', BOOTSTRAP_ARCHITECTURE,
|
||||
'--variant', BOOTSTRAP_VARIANT,
|
||||
suite,
|
||||
root_path,
|
||||
mirror_location,
|
||||
]
|
||||
completed_process = subprocess.run(command, capture_output=True)
|
||||
return completed_process
|
Loading…
Reference in a new issue