From 45c9909428c0436ff75ab872420456fb9bf12b9f Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 7 Oct 2022 02:27:20 -0400 Subject: [PATCH] Add output message to debootstrap install --- .../provisioner/examples/script/3-debootstrap.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/api-daemon/provisioner/examples/script/3-debootstrap.py b/api-daemon/provisioner/examples/script/3-debootstrap.py index 802b5884..e9c6b522 100644 --- a/api-daemon/provisioner/examples/script/3-debootstrap.py +++ b/api-daemon/provisioner/examples/script/3-debootstrap.py @@ -480,14 +480,12 @@ class VMBuilderScript(VMBuilder): if not root_volume: raise ProvisioningError("Failed to find root volume in volumes list") - # Perform a deboostrap installation + # Perform a debootstrap installation + print( + f"Installing system with debootstrap: debootstrap --include={','.join(deb_packages)} {deb_release} {temporary_directory} {deb_mirror}" + ) os.system( - "debootstrap --include={pkgs} {suite} {target} {mirror}".format( - suite=deb_release, - target=temporary_directory, - mirror=deb_mirror, - pkgs=",".join(deb_packages), - ) + "debootstrap --include={','.join(deb_packages)} {deb_release} {temporary_directory} {deb_mirror}" ) # Bind mount the devfs so we can grub-install later