fix(container): Remove obsolete LXC option 90/41290/2
authorVratko Polak <[email protected]>
Tue, 23 Jul 2024 11:26:30 +0000 (13:26 +0200)
committerVratko Polak <[email protected]>
Fri, 26 Jul 2024 08:53:12 +0000 (08:53 +0000)
CSIT-1944

Change-Id: I0f763369acc560a5ab2d9db28fc25f20b1c5ffe7
Signed-off-by: Vratko Polak <[email protected]>
resources/libraries/python/ContainerUtils.py

index ef08317..7d6d4d8 100644 (file)
@@ -939,8 +939,7 @@ class LXC(ContainerEngine):
         image = self.container.image if self.container.image \
             else f"-d ubuntu -r jammy -a {target_arch}"
 
-        cmd = f"lxc-create -t download --name {self.container.name} " \
-            f"-- {image} --no-validate"
+        cmd = f"lxc-create -t download --name {self.container.name} -- {image}"
 
         ret, _, _ = self.container.ssh.exec_command_sudo(cmd, timeout=1800)
         if int(ret) != 0: