From 5a8c284b38df59b30458af9f38b5b29cae11c62b Mon Sep 17 00:00:00 2001 From: linggao Date: Mon, 29 Mar 2010 20:40:57 +0000 Subject: [PATCH] added non-interactive in zypper calls in otherpkgs postscript git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5600 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/otherpkgs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/xCAT/postscripts/otherpkgs b/xCAT/postscripts/otherpkgs index a39d157f2..ccd123366 100755 --- a/xCAT/postscripts/otherpkgs +++ b/xCAT/postscripts/otherpkgs @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/sh # IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html #------------------------------------------------------------------------------- @@ -85,11 +85,13 @@ else do result=`zypper sd $x` done - zypper refresh + zypper --non-interactive refresh repo_base="/tmp" fi fi +dhcpcd -n eth0 + repo_path=() repo_pkgs="" @@ -189,7 +191,7 @@ do result=`zypper sa -c $REPOFILE` fi - result=`zypper refresh xcat-otherpkgs$index 2>&1` + result=`zypper --non-interactive refresh xcat-otherpkgs$index 2>&1` if [ $? -eq 0 ]; then rc=0 repo_path[${#repo_path[*]}]=$path