mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-02 08:17:01 +00:00
kata-manager: Ensure we run apt-get update before apt-get install
As that's an operation that can easily fail, and it's quite simple / cheap for us to run it, let's just do it and avoid the failure. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
d547798284
commit
37233622da
@ -341,7 +341,7 @@ check_deps()
|
||||
|
||||
case "$ID" in
|
||||
centos|rhel) sudo yum -y install $packages ;;
|
||||
debian|ubuntu) sudo apt-get -y install $packages ;;
|
||||
debian|ubuntu) sudo apt-get update && sudo apt-get -y install $packages ;;
|
||||
fedora) sudo dnf -y install $packages ;;
|
||||
opensuse*|sles) sudo zypper install -y $packages ;;
|
||||
*) die "Cannot automatically install packages on $ID, install $packages manually and re-run"
|
||||
|
Loading…
Reference in New Issue
Block a user