From patchwork Fri Feb 6 00:19:26 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: ybin succeeds but returns error code Date: Thu, 05 Feb 2009 14:19:26 -0000 From: Anton Blanchard X-Patchwork-Id: 23007 Message-Id: <20090206001926.GA23273@kryten> To: yaboot-devel@ozlabs.org Hi, On a System p box, ybin returns an error even though it succeeds: # ybin # echo $? 1 The patch below fixes it: # ybin # echo $? 0 Signed-off-by: Anton Blanchard --- diff --git a/ybin/ybin b/ybin/ybin index 379b94b..cf58db9 100755 --- a/ybin/ybin +++ b/ybin/ybin @@ -1152,6 +1152,7 @@ raw_install() fi sync ; sync [ "$VERBOSE" = 1 ] && echo "$PRG: Installation successful" + return 0 } ## make sure the first stage ofboot generator is compatible.