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.
This commit is contained in:
Ann 2022-10-08 14:38:25 +08:00 committed by GitHub
parent eff10bcd8d
commit 0400765e1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View File

@ -65,6 +65,8 @@ Requires: python
Requires: python3 Requires: python3
Requires: bash Requires: bash
Requires: gawk Requires: gawk
Requires: which
Requires: file
Requires: bzip2 Requires: bzip2
Requires: gzip Requires: gzip
Requires: unzip Requires: unzip

View File

@ -60,6 +60,8 @@ Requires: java-11-openjdk
Requires: python3 Requires: python3
Requires: bash Requires: bash
Requires: gawk Requires: gawk
Requires: which
Requires: file
Requires: bzip2 Requires: bzip2
Requires: gzip Requires: gzip
Requires: unzip Requires: unzip

View File

@ -60,6 +60,8 @@ Requires: java-11-openjdk
Requires: python3 Requires: python3
Requires: bash Requires: bash
Requires: gawk Requires: gawk
Requires: which
Requires: file
Requires: bzip2 Requires: bzip2
Requires: gzip Requires: gzip
Requires: unzip Requires: unzip