Make apt-get upgrade non-interactive for configuration 54/30454/4
authorThanh Ha <thanh.ha@linuxfoundation.org>
Tue, 1 Dec 2015 23:58:54 +0000 (18:58 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 11 Dec 2015 00:53:08 +0000 (00:53 +0000)
Related to this issue:
https://askubuntu.com/questions/146921/how-do-i-apt-get-y-dist-upgrade-without-a-grub-config-prompt

Change-Id: Ibe9df17192409e387840ce1862d576d35f3ce49d
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
vagrant/gbp-ubuntu-docker-ovs-node/bootstrap.sh
vagrant/ubuntu-mininet/bootstrap.sh

index 2fadf142d43d3f5b82bffa1c232b542cad2f4541..e8ac368235ae07070f9569d4a1c9fb9887e90e39 100644 (file)
@@ -4,7 +4,8 @@
 
 echo "---> Updating operating system"
 apt-get update -qq
-apt-get upgrade -y --force-yes -qq
+DEBIAN_FRONTEND=noninteractive apt-get upgrade -y --force-yes -qq \
+    -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold"
 
 # we need garethr-docker in our puppet manifest to install docker
 # cleanly
index 324c56d29198e8301c24e83f7e7e56f0ae11eedc..ee1f12dc17539626f0ddfd66bafabc94e949d6b8 100644 (file)
@@ -4,7 +4,8 @@
 
 echo "---> Updating operating system"
 apt-get update -qq
-apt-get upgrade -y --force-yes -qq
+DEBIAN_FRONTEND=noninteractive apt-get upgrade -y --force-yes -qq \
+    -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold"
 
 # To handle the prompt style that is expected all over the environment
 # with how use use robotframework we need to make sure that it is