rancher / elemental-toolkit

:snowflake: The toolkit to build, ship and maintain cloud-init driven Linux derivatives based on container images
https://rancher.github.io/elemental-toolkit/docs/
Apache License 2.0
288 stars 49 forks source link

Errors labeling files during ISO build #2060

Open frelon opened 3 months ago

frelon commented 3 months ago

elemental-toolkit version: Main branch

CPU architecture, OS, and Version: Linux 6.8.7-1-default #1 SMP PREEMPT_DYNAMIC (5c0cf23) x86_64 x86_64 x86_64 GNU/Linux

Describe the bug

When building an ISO I'm getting the following logs:

INFO[2024-04-30T06:51:09Z] Creating squashfs image for file /tmp/elemental-iso689147035/iso/boot/x86_64/loader/rootfs.squashfs
DEBU[2024-04-30T06:51:09Z] Running cmd: 'setfiles -i -F -r /tmp/elemental-iso689147035/rootfs /tmp/elemental-iso689147035/rootfs/etc/selinux/targeted/contexts/files/file_contexts /tmp/elemental-iso689147035/rootfs'
DEBU[2024-04-30T06:51:13Z] 'setfiles' command reported an error: exit status 255
DEBU[2024-04-30T06:51:13Z] 'setfiles' command output: setfiles: Could not set context for /tmp/elemental-iso689147035/rootfs/usr/bin/pasta.avx2:  Invalid argument
setfiles: Could not set context for /tmp/elemental-iso689147035/rootfs/usr/bin/passt:  Invalid argument
setfiles: Could not set context for /tmp/elemental-iso689147035/rootfs/usr/bin/passt.avx2:  Invalid argument
setfiles: Could not set context for /tmp/elemental-iso689147035/rootfs/usr/bin/pasta:  Invalid argument
DEBU[2024-04-30T06:51:13Z] SELinux setfiles output: setfiles: Could not set context for /tmp/elemental-iso689147035/rootfs/usr/bin/pasta.avx2:  Invalid argument
setfiles: Could not set context for /tmp/elemental-iso689147035/rootfs/usr/bin/passt:  Invalid argument
setfiles: Could not set context for /tmp/elemental-iso689147035/rootfs/usr/bin/passt.avx2:  Invalid argument
setfiles: Could not set context for /tmp/elemental-iso689147035/rootfs/usr/bin/pasta:  Invalid argument
WARN[2024-04-30T06:51:13Z] failed SELinux labelling at /tmp/elemental-iso689147035/rootfs: exit status 255