Merge "yum-minimal: clear our rpm/dnf/yum data in chroot"
This commit is contained in:
commit
9b3d7504c5
@ -177,8 +177,15 @@ else
|
|||||||
_install_pkg_manager yum
|
_install_pkg_manager yum
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# bootstrap the environment within the chroot
|
# we just installed yum/dnf with "outside" tools (yum/rpm) which
|
||||||
sudo -E chroot $TARGET_ROOT ${YUM} makecache
|
# might have created /var/lib/[yum|rpm] (etc) that are slighlty
|
||||||
|
# incompatible. Refresh everything with the in-chroot tools
|
||||||
|
sudo -E chroot $TARGET_ROOT rpm --rebuilddb
|
||||||
|
sudo -E chroot $TARGET_ROOT ${YUM} clean all
|
||||||
|
|
||||||
|
# bootstrap the environment within the chroot; bring in new
|
||||||
|
# metadata with an update and install some base packages we need.
|
||||||
|
sudo -E chroot $TARGET_ROOT ${YUM} -y update
|
||||||
sudo -E chroot $TARGET_ROOT ${YUM} -y \
|
sudo -E chroot $TARGET_ROOT ${YUM} -y \
|
||||||
--setopt=cachedir=/tmp/yum/$ARCH/$DIB_RELEASE \
|
--setopt=cachedir=/tmp/yum/$ARCH/$DIB_RELEASE \
|
||||||
install passwd findutils sudo util-linux-ng
|
install passwd findutils sudo util-linux-ng
|
||||||
|
Loading…
Reference in New Issue
Block a user