From: Ruben Rodriguez Date: Wed, 2 Sep 2015 21:30:42 +0000 (-0500) Subject: Run apt in noninteractive mode in custom scripts X-Git-Url: https://vcs.fsf.org/?p=fai-configs.git;a=commitdiff_plain;h=025ba1f73692eebe84efe0c24ec63d8aea2e03c7;ds=sidebyside Run apt in noninteractive mode in custom scripts --- diff --git a/scripts/FSF/10_get_extras.sh b/scripts/FSF/10_get_extras.sh index 8803bef..461f012 100755 --- a/scripts/FSF/10_get_extras.sh +++ b/scripts/FSF/10_get_extras.sh @@ -1,4 +1,6 @@ #!/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 diff --git a/scripts/LAST/50-misc b/scripts/LAST/50-misc index 6de8856..10bf730 100755 --- a/scripts/LAST/50-misc +++ b/scripts/LAST/50-misc @@ -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"