From 7d124cf751fb027401afdd4822ee442c76fe3787 Mon Sep 17 00:00:00 2001 From: Mathieu Broillet Date: Fri, 16 Jun 2023 16:03:39 +0200 Subject: [PATCH] make sure bash is installed on creation of lxc --- src/lxc/lxc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lxc/lxc.py b/src/lxc/lxc.py index dd6f0bc..28b82e4 100644 --- a/src/lxc/lxc.py +++ b/src/lxc/lxc.py @@ -317,6 +317,10 @@ class LXC(LinuxMachine): self.start() + # Make sure bash is installed for later use + if not self.has_program("bash"): + self.install_package("bash") + logging.info("Setting up SSH for LXC") # self.run_script(script_path="protected/scripts/install-config-ssh.sh") commands_utils.run_script(lxc=self, step={"local_path": "protected/scripts/install-config-ssh.sh"})