This commit is contained in:
Marc Beninca 2024-02-16 21:42:48 +01:00
parent 5112761af5
commit e11b92e57b
4 changed files with 22 additions and 29 deletions

20
deb/__init__.py Normal file
View file

@ -0,0 +1,20 @@
import cmd
import ps
cmd.need('debootstrap')
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 = ps.run(command)
return completed_process