/bin/sh: xz: command not found (deploy error)

8 views
Skip to first unread message

jorge Ibaceta

unread,
Mar 22, 2023, 11:12:17 AMMar 22
to kiwi
Hi, I'm looking for help


I try to deploy a suse 15 from branch server , i enabled compressed="true"

<type filesystem="ext4" image="pxe" initrd_system="dracut" compressed="true"></type>

but in deploy, a have this error  from Suse Manager /bin/sh: xz: command not found

i nedd add xz in config.xml

---------- ID: disk1P3_deployed Function: saltboot.deployed Name: disk1P3 Result: false Comment: Downloading image using set -o pipefail;curl -k -f -L https://ftp/saltboot/image/SUSE_15_SP3.x86_64-8.0.7-1/SUSE_15_SP3_NCR.x86_64-8.0.7.xz?orgid=1 Unable to deploy image SUSE_15_SP3_NCR-8.0.7-1 on disk1P3. /bin/sh: xz: command not found % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 818M 0 7961 0 0 863k 0 0:16:10 --:--:-- 0:16:10 863k curl: (23) Failed writing body (0 != 7961) Started: 14:53:23.969829 Duration: 117.668 SLS: saltboot Changed: {}

Marcus Schäfer

unread,
Mar 23, 2023, 3:47:37 AMMar 23
to kiwi-...@googlegroups.com
Hi Jorge,

> I try to deploy a suse 15 from branch server , i
> enabled compressed="true"
>
> <type filesystem="ext4" image="pxe" initrd_system="dracut"
> compressed="true"></type>

ok, and this results in "SUSE_15_SP3_NCR.x86_64-8.0.7.xz" correct ?

> but in deploy, a have this error from Suse Manager /bin/sh: xz:
> command not found
>
> i nedd add xz in config.xml

That part I did not understand. If you put <package name="xz"/> in
your config.xml it will lead to the xz tool to become installed
inside of your image. Meaning inside of SUSE_15_SP3_NCR.x86_64-8.0.7.xz

But if I understood the error of the deployment correctly you need
xz in the environment of the deployment. Meaning in the environment
of your "saltboot.deployed" salt state.

Thus I think adding xz to your image will not help with the
deployment issue reported as:

> ---------- ID: disk1P3_deployed Function: saltboot.deployed Name:
> disk1P3 Result: false Comment: Downloading image using set -o
> pipefail;curl -k -f -L
> https://ftp/saltboot/image/SUSE_15_SP3.x86_64-8.0.7-1/SUSE_15_SP3_NCR.x
> 86_64-8.0.7.xz?orgid=1 Unable to deploy image SUSE_15_SP3_NCR-8.0.7-1
> on disk1P3. /bin/sh: xz: command not found % Total % Received % Xferd
> Average Speed Time Time Time Current Dload Upload Total Spent Left

So what is disk1P3 ? and I would assume you need xz there

Hope this helps a bit

Regards,
Marcus
--
Public Key available via: https://keybase.io/marcus_schaefer/key.asc
keybase search marcus_schaefer
-------------------------------------------------------
Marcus Schäfer Brunnenweg 18
Tel: +49 7562 905437 D-88260 Argenbühl
Germany
-------------------------------------------------------
signature.asc
Reply all
Reply to author
Forward
0 new messages