From 025ba1f73692eebe84efe0c24ec63d8aea2e03c7 Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez Date: Wed, 2 Sep 2015 16:30:42 -0500 Subject: [PATCH] Run apt in noninteractive mode in custom scripts --- scripts/FSF/10_get_extras.sh | 6 ++++-- scripts/LAST/50-misc | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) 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" -- 2.25.1