]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Fixing Debian/Ubuntu updates to be completely non-interactive
authordragon788 <github@deik.me>
Sun, 17 Jan 2016 19:12:37 +0000 (13:12 -0600)
committerdragon788 <github@deik.me>
Sun, 17 Jan 2016 19:20:28 +0000 (13:20 -0600)
avr_setup.sh

index 4b252808520684500eaade6bf2f717f6aad6c336..34a8a3281b3abbe0b541695271d09caa8568e6de 100644 (file)
@@ -20,7 +20,15 @@ if [[ -n "$(type -P pacman )" ]]; then
 
 elif [[ -n "$(type -P apt-get)" ]]; then
   # Debian and derivatives
-  apt-get update -y && apt-get upgrade -y
+  # This block performs completely non-interactive updates {{
+  export DEBIAN_FRONTEND=noninteractive
+  export DEBCONF_NONINTERACTIVE_SEEN=true
+  echo "grub-pc hold" | dpkg --set-selections
+  apt-get -y update
+  apt-get -y --allow-unauthenticated upgrade \
+         -o Dpkg::Options::="--force-confdef" \
+         -o Dpkg::Options::="--force-confold"
+  # }}
   apt-get install -y \
     build-essential \
     gcc \