From 1a544f66a51579180ead9deadc168d2a1a200719 Mon Sep 17 00:00:00 2001 From: Lukas Bezdicka Date: Wed, 12 Jul 2017 21:13:28 +0200 Subject: Ensure yum cache is ready before update To workaround yum bug with libnss we need to make yum cache before running update. In fact we should have done this regardless of the bug. Change-Id: I5b2355fb8abe3c8d4b9ce9c62b9ffdba8c1e8d9d Resolves: rhbz#1458841 Closes-Bug: #1703830 --- extraconfig/tasks/yum_update.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'extraconfig') diff --git a/extraconfig/tasks/yum_update.sh b/extraconfig/tasks/yum_update.sh index 0c4a7928..5f5daf23 100755 --- a/extraconfig/tasks/yum_update.sh +++ b/extraconfig/tasks/yum_update.sh @@ -64,6 +64,9 @@ fi command_arguments=${command_arguments:-} +# Always ensure yum has full cache +yum makecache || echo "Yum makecache failed. This can cause failure later on." + # yum check-update exits 100 if updates are available set +e check_update=$(yum check-update 2>&1) -- cgit 1.2.3-korg