From 02269d22b546f2ea486de498292f9bc364edb3c9 Mon Sep 17 00:00:00 2001 From: ligc Date: Mon, 18 Nov 2013 16:29:13 +0800 Subject: [PATCH] fix for bug 4400: add additional apt-get flag to avoid prompting interactive ations during packages installation --- xCAT/postscripts/otherpkgs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT/postscripts/otherpkgs b/xCAT/postscripts/otherpkgs index f6687614f..ca14f58c5 100755 --- a/xCAT/postscripts/otherpkgs +++ b/xCAT/postscripts/otherpkgs @@ -893,9 +893,9 @@ EOF` elif [ $hasapt -eq 1 ]; then apt_get_update_if_repos_changed $REPOFILE if [ $VERBOSE ]; then - echo "$envlist apt-get -q -y --force-yes install $repo_pkgs" + echo "$envlist apt-get install -y --force-yes -o Dpkg::Options::=\"--force-confdef\" -o Dpkg::Options::=\"--force-confold\" -q $repo_pkgs" fi - result=`eval $envlist apt-get -q -y --force-yes install $repo_pkgs 2>&1` + result=`eval $envlist apt-get install -y --force-yes -o Dpkg::Options::=\"--force-confdef\" -o Dpkg::Options::=\"--force-confold\" -q $repo_pkgs 2>&1` R=$? if [ $R -ne 0 ]; then RETURNVAL=$R