Skip to content

Commit 0400765

Browse files
authored
packaging: rpm dependencies: which and file (#6638)
createtmplt.sh will use file, and setup-sysvm-tmplt will use which. this is log: /usr/share/cloudstack-common/scripts/storage/secondary/setup-sysvm-tmplt: line 74: which: command not found /usr/share/cloudstack-common/scripts/storage/secondary/createtmplt.sh: line 56: file: command not found /usr/share/cloudstack-common/scripts/storage/secondary/createtmplt.sh: line 75: file: command not found /usr/share/cloudstack-common/scripts/storage/secondary/createtmplt.sh: line 42: file: command not found /usr/share/cloudstack-common/scripts/storage/secondary/setup-sysvm-tmplt: line 74: which: command not found /usr/share/cloudstack-common/scripts/storage/secondary/createtmplt.sh: line 56: file: command not found /usr/share/cloudstack-common/scripts/storage/secondary/createtmplt.sh: line 75: file: command not found /usr/share/cloudstack-common/scripts/storage/secondary/createtmplt.sh: line 42: file: command not found when no which and file, systemvm template can not be import correctly(not decompressed, stay bzip2), then libvirtd will report error: Could not open backing file: Image is not in qcow2 format Then systemvm can not be started.
1 parent eff10bc commit 0400765

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

packaging/centos7/cloud.spec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ Requires: python
6565
Requires: python3
6666
Requires: bash
6767
Requires: gawk
68+
Requires: which
69+
Requires: file
6870
Requires: bzip2
6971
Requires: gzip
7072
Requires: unzip

packaging/centos8/cloud.spec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ Requires: java-11-openjdk
6060
Requires: python3
6161
Requires: bash
6262
Requires: gawk
63+
Requires: which
64+
Requires: file
6365
Requires: bzip2
6466
Requires: gzip
6567
Requires: unzip

packaging/suse15/cloud.spec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ Requires: java-11-openjdk
6060
Requires: python3
6161
Requires: bash
6262
Requires: gawk
63+
Requires: which
64+
Requires: file
6365
Requires: bzip2
6466
Requires: gzip
6567
Requires: unzip

0 commit comments

Comments
 (0)