From c003a1ee93623e3e2ef4dadc6fd9ef7261791ff2 Mon Sep 17 00:00:00 2001 From: immarvin Date: Thu, 16 Feb 2017 14:13:52 +0800 Subject: [PATCH] fix issue [fvt]2.13.2 xcat install monitor process hang and could not reort the node status --- xCAT-server/lib/xcat/plugins/grub2.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/grub2.pm b/xCAT-server/lib/xcat/plugins/grub2.pm index 1d4abda32..d12b2224a 100644 --- a/xCAT-server/lib/xcat/plugins/grub2.pm +++ b/xCAT-server/lib/xcat/plugins/grub2.pm @@ -186,7 +186,7 @@ sub setstate { my $cref = $chainhash{$node}->[0]; #$chaintab->getNodeAttribs($node,['currstate']); # remove the old boot configuration files and create a new one, but only if not offline directive - system("find . -inum \$(stat --printf \%i $tftpdir/boot/grub2/$node 2>/dev/null) -exec rm -f {} \\; 2>/dev/null"); + system("find $tftpdir/boot/grub2/ -inum \$(stat --printf \%i $tftpdir/boot/grub2/$node 2>/dev/null) -exec rm -f {} \\; 2>/dev/null"); if ($cref and $cref->{currstate} ne "offline") { open($pcfg, '>', $tftpdir . "/boot/grub2/" . $node); print $pcfg "#" . $cref->{currstate} . "\n";