Run apt in noninteractive mode in custom scripts
[fai-configs.git] / scripts / LAST / 50-misc
index 6de8856616710f0818cb926b3dbfac446684853a..10bf73010694181a2c2de8659635e35c75ff5a23 100755 (executable)
@@ -24,7 +24,8 @@ fi
 
 # Make sure everything is configured properly
 echo "Running \"apt-get -f install\" for the last time."
-$ROOTCMD apt-get -f install
+export DEBIAN_FRONTEND=noninteractive
+$ROOTCMD apt-get -y --force-yes -f install
 
 lskernels=$(echo $target/boot/vmlinu*)
 [ -f ${lskernels%% *} ] || echo "ERROR: No kernel was installed. Have a look at shell.log"