Skip to contentSkip to conversation

scripts: add lzo to the x86_64 alpine rootfs

PATCH In review Javi Merino 3 participants 3 messages Nov 7, 2024 – Nov 8, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts: add lzo to the x86_64 alpine rootfs

In the qemu-alpine-x86_64-gcc test, we want to test libxenguest built with all libraries. If we add lzo-dev to the alpine:3.18 container, libxenguest is linked against it. However, as the initrd in the test-artifacts does not contain lzo, the qemu-alpine-x86_64-gcc gitlab CI job fails with:

+ bash /etc/init.d/xencommons start
Starting /usr/local/sbin/xenstored...
/etc/xen/scripts/launch-xenstore: line 90: echo: write error: Invalid argument
Setting domain 0 name, domid and JSON config...
Error loading shared library liblzo2.so.2: No such file or directory (needed by /usr/local/lib/libxenguest.so.4.20) Error relocating /usr/local/lib/libxenguest.so.4.20: __lzo_init_v2: symbol not found
Error relocating /usr/local/lib/libxenguest.so.4.20: lzo1x_decompress_safe: symbol not found Starting xenconsoled...
Starting QEMU as disk backend for dom0
+ xl list
Error loading shared library liblzo2.so.2: No such file or directory (needed by /usr/local/lib/libxenguest.so.4.20) Error relocating /usr/local/lib/libxenguest.so.4.20: __lzo_init_v2: symbol not found
Error relocating /usr/local/lib/libxenguest.so.4.20: lzo1x_decompress_safe: symbol not found
+ xl create -c /root/test.cfg
Error loading shared library liblzo2.so.2: No such file or directory (needed by /usr/local/lib/libxenguest.so.4.20) Error relocating /usr/local/lib/libxenguest.so.4.20: __lzo_init_v2: symbol not found
Error relocating /usr/local/lib/libxenguest.so.4.20: lzo1x_decompress_safe: symbol not found
* Execution of "/etc/local.d/xen.start" failed.

Add lzo to the initrd that becomes the rootfs to install liblzo2.so.2 .

---

Tested in https://gitlab.com/xen-project/people/javimerino/test-artifacts/-/jobs/8295092924

 scripts/x86_64-rootfs-alpine.sh | 1 +
 1 file changed, 1 insertion(+)
scripts/x86_64-rootfs-alpine.sh +1 -0
index 28d8e30d8eac..f8b04c52f82e 100755
@@ -12,6 +12,7 @@ apk add dbus
 apk add bash
 apk add python3
 apk add zlib
+apk add lzo
 apk add ncurses
 apk add yajl
 apk add libaio
Signature · 1 line
2.47.0
Acked-by on v1 1/1
#1 lore raw
Quoted 25 lines · Javi Merino

In the qemu-alpine-x86_64-gcc test, we want to test libxenguest built with all libraries. If we add lzo-dev to the alpine:3.18 container, libxenguest is linked against it. However, as the initrd in the test-artifacts does not contain lzo, the qemu-alpine-x86_64-gcc gitlab CI job fails with:

+ bash /etc/init.d/xencommons start
Starting /usr/local/sbin/xenstored...
/etc/xen/scripts/launch-xenstore: line 90: echo: write error: Invalid argument
Setting domain 0 name, domid and JSON config...
Error loading shared library liblzo2.so.2: No such file or directory (needed by /usr/local/lib/libxenguest.so.4.20) Error relocating /usr/local/lib/libxenguest.so.4.20: __lzo_init_v2: symbol not found
Error relocating /usr/local/lib/libxenguest.so.4.20: lzo1x_decompress_safe: symbol not found Starting xenconsoled...
Starting QEMU as disk backend for dom0
+ xl list
Error loading shared library liblzo2.so.2: No such file or directory (needed by /usr/local/lib/libxenguest.so.4.20) Error relocating /usr/local/lib/libxenguest.so.4.20: __lzo_init_v2: symbol not found
Error relocating /usr/local/lib/libxenguest.so.4.20: lzo1x_decompress_safe: symbol not found
+ xl create -c /root/test.cfg
Error loading shared library liblzo2.so.2: No such file or directory (needed by /usr/local/lib/libxenguest.so.4.20) Error relocating /usr/local/lib/libxenguest.so.4.20: __lzo_init_v2: symbol not found
Error relocating /usr/local/lib/libxenguest.so.4.20: lzo1x_decompress_safe: symbol not found
* Execution of "/etc/local.d/xen.start" failed.

Quoted 3 lines

Add lzo to the initrd that becomes the rootfs to install liblzo2.so.2 .

Ah - this is a good example of the problem I opined about in
https://lore.kernel.org/xen-devel/[email protected]/T/#u

For now, I'll take this and use it as a test of whether I can drive the new test-artefacts repo.

#2 lore raw
Quoted 30 lines · Andrew Cooper
Quoted 25 lines · Javi Merino

In the qemu-alpine-x86_64-gcc test, we want to test libxenguest built with all libraries. If we add lzo-dev to the alpine:3.18 container, libxenguest is linked against it. However, as the initrd in the test-artifacts does not contain lzo, the qemu-alpine-x86_64-gcc gitlab CI job fails with:

+ bash /etc/init.d/xencommons start
Starting /usr/local/sbin/xenstored...
/etc/xen/scripts/launch-xenstore: line 90: echo: write error: Invalid argument
Setting domain 0 name, domid and JSON config...
Error loading shared library liblzo2.so.2: No such file or directory (needed by /usr/local/lib/libxenguest.so.4.20) Error relocating /usr/local/lib/libxenguest.so.4.20: __lzo_init_v2: symbol not found
Error relocating /usr/local/lib/libxenguest.so.4.20: lzo1x_decompress_safe: symbol not found Starting xenconsoled...
Starting QEMU as disk backend for dom0
+ xl list
Error loading shared library liblzo2.so.2: No such file or directory (needed by /usr/local/lib/libxenguest.so.4.20) Error relocating /usr/local/lib/libxenguest.so.4.20: __lzo_init_v2: symbol not found
Error relocating /usr/local/lib/libxenguest.so.4.20: lzo1x_decompress_safe: symbol not found
+ xl create -c /root/test.cfg
Error loading shared library liblzo2.so.2: No such file or directory (needed by /usr/local/lib/libxenguest.so.4.20) Error relocating /usr/local/lib/libxenguest.so.4.20: __lzo_init_v2: symbol not found
Error relocating /usr/local/lib/libxenguest.so.4.20: lzo1x_decompress_safe: symbol not found
* Execution of "/etc/local.d/xen.start" failed.

Quoted 3 lines

Add lzo to the initrd that becomes the rootfs to install liblzo2.so.2 .

Quoted 7 lines

Ah - this is a good example of the problem I opined about in
https://lore.kernel.org/xen-devel/[email protected]/T/#u

For now, I'll take this and use it as a test of whether I can drive the new test-artefacts repo.

+1