Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions images/virt-launcher/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ binaries:
- /usr/bin/openssl
# Xorriso (Creates an image of an ISO9660 filesystem)
- /usr/bin/xorriso-dd-target /usr/bin/xorrisofs
# Swtpm
- /usr/bin/swtpm /usr/bin/swtpm_bios /usr/bin/swtpm_cert /usr/bin/swtpm_ioctl /usr/bin/swtpm_localca /usr/bin/swtpm_setup
# Dmidecode
- /usr/sbin/biosdecode /usr/sbin/dmidecode
# Numactl
Expand Down Expand Up @@ -234,10 +236,12 @@ import:
includePaths:
- node-labeller
- vlctl

- image: packages/binaries/swtpm
add: /swtpm
to: /relocate
after: setup
to: /
before: install
Comment thread
universal-itengineer marked this conversation as resolved.

- image: tools/coreutils
add: /
to: /relocate
Expand All @@ -258,7 +262,18 @@ shell:
- |
apt-get update && apt-get install -y {{ $virtLauncherDependencies.libs | join " " }} {{ $virtLauncherDependencies.packages | join " " }}

# libtpms libtpms-devel require version 0.10 that in sisyphus repo
cat >/etc/apt/sources.list.d/alt-sisyphus.list<<EOF
rpm [alt] http://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus x86_64 classic
rpm [alt] http://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus noarch classic
EOF

apt-get update
apt-get install -y libtpms
rm -f /etc/apt/sources.list.d/alt-sisyphus.list

apt-get clean
rm --recursive --force /var/lib/apt/lists/ftp.altlinux.org* /var/cache/apt/*.bin
install:
- |
echo "Create folder hierarchy in VBINS"
Expand All @@ -277,7 +292,7 @@ shell:

LIBS="/usr/lib64/libbsd.so* /usr/lib64/libnbd.so* /usr/lib64/libfuse3.so*"
LIBS+=" /usr/lib64/libjson-c.so* /usr/lib64/libssh.so* /usr/lib64/libssh2.so*"
LIBS+=" /usr/lib64/libtpms.so*"
LIBS+=" /usr/lib64/libtpms* /usr/lib64/libjson* /usr/lib64/libfuse*"
LIBS+=" /usr/lib64/libxml2.so* /usr/lib64/libgcc_s*"

echo "Relocate additional libs for files in /VBINS"
Expand All @@ -297,6 +312,9 @@ shell:
- |
./relocate_binaries.sh -i "{{ $virtLauncherDependencies.binaries | join " " }}" -o /relocate

echo "Copy additional config swtpm"
cp -a /etc/{swtpm_setup.conf,swtpm-localca.conf,swtpm-localca.options} /relocate/etc/

echo "Copy xattr config"
cp -a /etc/xattr.conf /relocate/etc

Expand Down
Loading