mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Force apt to not bring up an ncurses menu.
PiperOrigin-RevId: 432347975
This commit is contained in:
committed by
gVisor bot
parent
15898a341f
commit
c8b0aadfa9
@@ -3,7 +3,14 @@
|
||||
function install_pkgs() {
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
while true; do
|
||||
if sudo -E apt-get update && sudo -E apt-get install -y "$@"; then
|
||||
if sudo -E apt-get update && \
|
||||
sudo -E apt-get install -y \
|
||||
-o Dpkg::Options::=--force-confold \
|
||||
-o Dpkg::Options::=--force-confdef \
|
||||
--allow-downgrades \
|
||||
--allow-remove-essential \
|
||||
--allow-change-held-packages \
|
||||
"$@"; then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user