rwx/deb/__init__.py

21 lines
448 B
Python
Raw Normal View History

2024-02-16 20:42:48 +00:00
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