From fb180e8084546de84c51e431153c880196955de7 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 17 Jul 2023 23:07:47 +0200 Subject: [PATCH] deb --- deb.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 deb.py diff --git a/deb.py b/deb.py new file mode 100644 index 0000000..05e72f0 --- /dev/null +++ b/deb.py @@ -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