Skip to content

Commit 7b8d154

Browse files
try import qemu imgs as dedicaded libs and bins
Signed-off-by: Nikita Korolev <nikita.korolev@flant.com>
1 parent 7cbf2c3 commit 7b8d154

3 files changed

Lines changed: 22 additions & 9 deletions

File tree

images/cdi-importer/werf.inc.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ imageSpec:
1717
libraries:
1818
- libsqlite3
1919
packages:
20-
- qemu-img
20+
# - qemu-img
2121
- libnbd
2222
- nbd-client
2323
- nbd-server
2424
binaries:
2525
# Qemu-img
26-
- /usr/bin/qemu-img
27-
- /usr/bin/qemu-nbd
26+
# - /usr/bin/qemu-img
27+
# - /usr/bin/qemu-nbd
2828
# All nbd binaries
2929
- /usr/bin/nbd*
3030
# Mount
@@ -52,6 +52,10 @@ import:
5252
- cdi-image-size-detection
5353
- cdi-importer
5454
- cdi-source-update-poller
55+
- image: qemu
56+
add: /qemu-img
57+
to: /relocate
58+
before: setup
5559
shell:
5660
install:
5761
- |

images/dvcr-artifact/werf.inc.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ shell:
3535
{{- define "$name" -}}
3636
binaries:
3737
- /usr/local/bin/dvcr-importer
38-
- /usr/bin/qemu-img
39-
- /usr/bin/qemu-nbd
38+
# - /usr/bin/qemu-img
39+
# - /usr/bin/qemu-nbd
4040
- /usr/bin/nbd*
4141
- /usr/bin/file
4242
- /usr/share/file/magic
@@ -58,11 +58,15 @@ import:
5858
add: /out
5959
to: /usr/local/bin
6060
before: setup
61+
- image: qemu
62+
add: /qemu-img
63+
to: /relocate
64+
before: setup
6165
shell:
6266
install:
6367
- |
6468
apt-get update && apt-get install --yes \
65-
qemu-img libnbd file
69+
libnbd file
6670
- apt-get clean
6771
- rm --recursive --force /var/lib/apt/lists/ftp.altlinux.org* /var/cache/apt/*.bin
6872
setup:

images/virt-handler/werf.inc.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ imageSpec:
5353
packages:
5454
- acl
5555
- nftables
56-
- qemu-img
56+
# - qemu-img
5757
- xorriso
5858
binaries:
59-
- /usr/bin/qemu-img
60-
- /usr/bin/qemu-nbd
59+
# - /usr/bin/qemu-img
60+
# - /usr/bin/qemu-nbd
6161
- /usr/bin/mount
6262
- /usr/bin/umount
6363
- /usr/bin/getfacl
@@ -76,6 +76,11 @@ binaries:
7676
image: {{ $.ImageName }}-bins
7777
final: false
7878
fromImage: base-alt-p11-binaries
79+
import:
80+
- image: qemu
81+
add: /qemu-img
82+
to: /relocate
83+
before: setup
7984
shell:
8085
install:
8186
- |

0 commit comments

Comments
 (0)