Skip to content

Commit

Permalink
working on #91 touch /var/lib/rpm/*
Browse files Browse the repository at this point in the history
  • Loading branch information
robnagler committed May 21, 2019
1 parent aaca4ba commit 4309641
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,6 @@ build_fedora_clean() {
if [[ ${build_no_clean:-} ]]; then
return
fi
# This avoids "rpmdb: damaged header" when building Fedora 29 on CentOS 7
rm -f /var/lib/rpm/__db*
build_sudo rpm --rebuilddb --quiet
# Clear caches
build_yum clean all
ls -d /var/cache/*/* | grep -v /var/cache/ldconfig/ | xargs rm -rf
Expand Down Expand Up @@ -405,6 +402,9 @@ build_run_user_home_chmod_public() {
}
build_run_yum() {
# Attempt to fix corrupted rpmdb
# https://github.com/moby/moby/issues/10180#issuecomment-378005800
touch /var/lib/rpm/*
if grep -s -q '^# *yum.update' rpms.txt || [[ ${build_want_yum_update:-} ]]; then
# https://bugzilla.redhat.com/show_bug.cgi?format=multiple&id=1171928
# error: unpacking of archive failed on file /sys: cpio: chmod
Expand Down

0 comments on commit 4309641

Please sign in to comment.