redhat: stop updating system unnecessarily
In RHEL-based operating systems, the update will actually attempt to update every single package in the system which can result in bad things (i.e. updating services when they're not supposed to). The intention was to do the same as the apt-get update which simply updates the repos. however this is not necessary in CentOS. Change-Id: I5a1f86899406e125b3a790e2e85ce36d73fbc55e
This commit is contained in:
parent
9cc46c8cfa
commit
b15b97fa0a
|
@ -41,8 +41,6 @@ lxc_container_default_config_list:
|
|||
# image.
|
||||
_lxc_container_extra_commands: |
|
||||
which dnf &>/dev/null && RHT_PKG_MGR='dnf' || RHT_PKG_MGR='yum'
|
||||
timeout 90 $RHT_PKG_MGR check-update
|
||||
echo "update" > /tmp/package-transaction.txt
|
||||
echo "install systemd-networkd systemd-resolved" >> /tmp/package-transaction.txt
|
||||
echo "run" >> /tmp/package-transaction.txt
|
||||
$RHT_PKG_MGR -y shell /tmp/package-transaction.txt
|
||||
|
|
Loading…
Reference in New Issue