From d57098c482fd34226f94927c86dfe9e07eaf9174 Mon Sep 17 00:00:00 2001 From: asirxing Date: Mon, 22 Jul 2013 05:55:43 +0000 Subject: [PATCH] Skip to add root relative information into CFM merge files git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@17006 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/CFMUtils.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/CFMUtils.pm b/perl-xCAT/xCAT/CFMUtils.pm index efe2761c0..3bbdeba38 100644 --- a/perl-xCAT/xCAT/CFMUtils.pm +++ b/perl-xCAT/xCAT/CFMUtils.pm @@ -191,7 +191,12 @@ sub updateUserInfo { { for my $record (@diff) { - print $fp "$record\n"; + # skip to add ROOT relative records into MERGE file + if ($record =~ /^root/) + { + next; + } + print $fp "$record\n"; } } close ($fp);