tools/centos-mirror-tools
Scott Little 5f8fc4e7b3 Fix download_mirror.sh without -n
download_mirror.sh fails when run without '-n'.

It seems that some functions were relocated to utils.sh that
require the 'SUDO' variable to be defined.  Those common utilities
are called from both download_mirror.sh and dl_rpms.sh.

download_mirror.sh sets it correctly, but dl_rpms.sh does not.
Instead dl_rpms.sh is setting 'SUDOCMD', which  the utils.sh ignores.
The result is that some yum commands are runs under sudo, while others
are not.  Eventually yumdownloader failes with ...

   Permission denied: '/var/lib/rpm/.dbenv.lock'

The fix is to convert dl_rpms.sh to use SUDO rather than SUDOCMD.

Closes-Bug: 1980684
Signed-off-by: Scott Little <scott.little@windriver.com>
Change-Id: Ib4afdba0260e67f06997c360272f40f28fb11834
2022-07-04 13:03:17 -04:00
..
config/centos rpms_centos.lst: update for linux-firmware 2022-05-24 01:23:16 +00:00
rpm-gpg-keys Add EPEL 8 repos in support of CentOS 8 2020-05-29 04:24:57 +00:00
stx_mirror_scripts use curl + avoid partial downloads 2021-11-10 14:25:47 -05:00
yum.repos.d Centos 8.5 moved to vault 2022-02-01 13:51:14 -05:00
dl_lower_layer_rpms.sh use curl + avoid partial downloads 2021-11-10 14:25:47 -05:00
dl_other_from_centos_repo.sh use curl + avoid partial downloads 2021-11-10 14:25:47 -05:00
dl_rpms.sh Fix download_mirror.sh without -n 2022-07-04 13:03:17 -04:00
dl_rpms_from_url.sh remove pike from mirror path name 2020-09-16 11:13:31 -04:00
dl_tarball.sh Add exception for helm2to3 tarball 2022-06-09 18:15:43 +00:00
download_mirror.sh use curl + avoid partial downloads 2021-11-10 14:25:47 -05:00
make_stx_mirror_yum_conf.sh use curl + avoid partial downloads 2021-11-10 14:25:47 -05:00
mirror-check.sh Add layer awareness to mirror-check.sh 2020-12-18 15:45:58 -05:00
show_imported_rpm_gpg_keys.sh Add build tools 2018-06-08 17:01:43 -05:00
starlingx_add_pkgs.sh use curl + avoid partial downloads 2021-11-10 14:25:47 -05:00
url_utils.sh Auto update CENGN yum.repos.d 2019-03-22 12:07:08 -04:00
utils.sh dl_tarball.sh: Support Broadcom tar file download 2022-03-21 15:56:53 -04:00
utils_tests.sh use curl + avoid partial downloads 2021-11-10 14:25:47 -05:00
yum.conf.sample download_mirror.sh fails with 404 errors 2019-03-13 14:32:03 +00:00