From ad5379756bf4604ab12e016008de267492549dad Mon Sep 17 00:00:00 2001 From: lissav Date: Mon, 15 Oct 2012 12:58:02 +0000 Subject: [PATCH] Do not check existence of postscripts with start-here git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14014 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/updatenode.pm | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/updatenode.pm b/xCAT-server/lib/xcat/plugins/updatenode.pm index 3246d6996..81beebd11 100644 --- a/xCAT-server/lib/xcat/plugins/updatenode.pm +++ b/xCAT-server/lib/xcat/plugins/updatenode.pm @@ -442,6 +442,10 @@ sub preprocess_updatenode } # handle the validity of postscripts + # check to see if they exist except for the internal xCAT + # postscripts-start-here,postbootscripts-start-here, + # defaults-postbootscripts-start-here, osimage-postbootscripts-start-here, + # etc if (defined($::RERUNPS)) { if ($::RERUNPS eq "") @@ -452,9 +456,9 @@ sub preprocess_updatenode { $postscripts = $::RERUNPS; my @posts = split(',', $postscripts); - - foreach (@posts) - { + if (!grep(/start-here/, @posts)) { + foreach (@posts) + { my @aa = split(' ', $_); if (!-e "$installdir/postscripts/$aa[0]") { @@ -464,8 +468,9 @@ sub preprocess_updatenode $callback->($rsp); return; } + } } - } + } } # If -F or -f option specified, sync files to the noderange or their