Skip to content

Commit 2fb4a2c

Browse files
committed
Use alldeps options when downloading the rpms and dependency
As per man page of `dnf-download`, `alldeps` option make sure to download the dependencies even it is installed on the host.
1 parent 4061b4f commit 2fb4a2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

createdisk-library.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ function install_additional_packages() {
184184
# Download the hyperV daemons dependency on host
185185
local pkgDir=$(mktemp -d tmp-rpmXXX)
186186
mkdir -p ${pkgDir}/packages
187-
sudo yum download --downloadonly --downloaddir ${pkgDir}/packages $* --resolve
187+
sudo yum download --downloadonly --downloaddir ${pkgDir}/packages $* --resolve --alldeps
188188

189189
# SCP the downloaded rpms to VM
190190
${SCP} -r ${pkgDir}/packages core@${vm_ip}:/home/core/

0 commit comments

Comments
 (0)