Run apt in noninteractive mode in custom scripts
authorRuben Rodriguez <ruben@gnu.org>
Wed, 2 Sep 2015 21:30:42 +0000 (16:30 -0500)
committerRuben Rodriguez <ruben@gnu.org>
Wed, 2 Sep 2015 21:30:42 +0000 (16:30 -0500)
scripts/FSF/10_get_extras.sh
scripts/LAST/50-misc

index 8803befc2c6151d655ef6d796acfffa1a503063a..461f012349ddfd1903a4aed9eb918ab11af13052 100755 (executable)
@@ -1,4 +1,6 @@
 #!/bin/bash
 
 #!/bin/bash
 
-$ROOTCMD apt-get update
-$ROOTCMD apt-get install spd-perl
\ No newline at end of file
+export DEBIAN_FRONTEND=noninteractive
+
+$ROOTCMD apt-get -y --force-yes update
+$ROOTCMD apt-get -y --force-yes install spd-perl
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."
 
 # 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"
 
 lskernels=$(echo $target/boot/vmlinu*)
 [ -f ${lskernels%% *} ] || echo "ERROR: No kernel was installed. Have a look at shell.log"