From 7705db6a4f2139b766bbdd36ea19e1d4169a23a9 Mon Sep 17 00:00:00 2001 From: immarvin Date: Tue, 13 Jan 2015 02:55:47 -0800 Subject: [PATCH] fix defect #4519 [DEV]too much duplicate /etc/fstab entries on service node --- xCAT-server/lib/xcat/plugins/AAsn.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/AAsn.pm b/xCAT-server/lib/xcat/plugins/AAsn.pm index 540e0bdce..953a4f658 100755 --- a/xCAT-server/lib/xcat/plugins/AAsn.pm +++ b/xCAT-server/lib/xcat/plugins/AAsn.pm @@ -429,7 +429,7 @@ sub setupInstallloc { # update fstab - my $cmd = "grep $master:$installloc $installdir /etc/fstab "; + my $cmd = "grep \"$master:$installloc $installdir\" /etc/fstab "; xCAT::Utils->runcmd($cmd, -1); if ($::RUNCMD_RC != 0) {