From 89c9b957fc63ae5080f1e3b3a2242844c716438c Mon Sep 17 00:00:00 2001 From: mxi1 Date: Wed, 15 Sep 2010 02:54:26 +0000 Subject: [PATCH] one bug fix for liteimg git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7454 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/statelite.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/statelite.pm b/xCAT-server/lib/xcat/plugins/statelite.pm index eddf51450..f6672f3e7 100644 --- a/xCAT-server/lib/xcat/plugins/statelite.pm +++ b/xCAT-server/lib/xcat/plugins/statelite.pm @@ -704,11 +704,11 @@ sub parseLiteFiles { sub recoverFiles { my ($rootimg_dir, $oldentry, $callback) = @_; - $f = $oldentry->[2]; + $f = $oldentry->[1]; #$callback->({info => ["! updating $f ..."]}); - if ($oldentry->[1] =~ m/bind/) { + if ($oldentry->[0] =~ m/bind/) { # shouldn't copy back from /.default, maybe the user has replaced the file/directory in .postinstall file my $default = $rootimg_dir . $f; xCAT::Utils->runcmd("rm -rf $default", 0, 1); # not sure whether it's necessary right now