Remote subcloud install failure in post-install script

When the kickstart tries to download packages_list from the
system controller, wget fails because the parameter to its
"-O" argument needs the full file path (including the file
name) as opposed to the full path to the directory that the
file resides in.

The argument has been fixed to use the full path name of the
file.

Test Plan:
PASS: Verify that the remote subcloud successfully downloads the
      file and installation passes.

Closes-Bug: 1976384

Signed-off-by: Shrikumar Sharma <shrikumar.sharma@windriver.com>
Change-Id: I65b6bd66e62e7353e33f2694ca5bf99d413df836
This commit is contained in:
Shrikumar Sharma 2022-05-31 10:08:13 -04:00
parent be95984d5c
commit b4599522c1
2 changed files with 2 additions and 2 deletions

View File

@ -534,7 +534,7 @@ else
# so get it from the system controller.
wlog "${KS} downloading packages_list from the system controller"
wget ${NOVERIFYSSL_WGET_OPT} ${pkg_url}/${DEST_PKG_FILE} \
-O ${PKG_FILE_LOC} \
-O ${PKG_FILE_LOC}/${DEST_PKG_FILE} \
-o $anaconda_logdir/${PKG_FILE}.log \
|| report_post_failure_with_logfile $anaconda_logdir/${PKG_FILE}.log
fi

View File

@ -106,7 +106,7 @@ if [ mountpoint -q /mnt/sysimage ]; then
fi
wlog "${KS} Downloading from ${feed_url} to ${pkg_file_loc}/${pkg_file}"
wget ${NOVERIFYSSL_WGET_OPT} -O ${pkg_file_loc} ${feed_url}/${pkg_file} \
wget ${NOVERIFYSSL_WGET_OPT} -O ${pkg_file_loc}/${pkg_file} ${feed_url}/${pkg_file} \
-o $anaconda_logdir/${pkg_file}.log \
|| wlog "${KS} Failed to download packages_list from controller"