diff --git a/perl-xCAT/xCAT/InstUtils.pm b/perl-xCAT/xCAT/InstUtils.pm index a96e53633..5ba19bd1e 100644 --- a/perl-xCAT/xCAT/InstUtils.pm +++ b/perl-xCAT/xCAT/InstUtils.pm @@ -121,7 +121,7 @@ sub myxCATname my ($junk, $name); # make sure xcatd is running - & db is available - # this routine is also called during initial install of xCAT + # this routine is called during initial install of xCAT my $rc = `lsxcatd -d`; if ($rc == 0) { @@ -1067,6 +1067,14 @@ sub dolitesetup # ex. /foo/bar/ or /etc/lppcfg my ($node, $option, $file) = split (/\|/, $line); + # entry must be an absolute path + unless ($file =~ m{^/}) { + my $rsp; + push @{$rsp->{data}}, "The litefile entry \'$file\' is not an absolute path name.\n"; + xCAT::MsgUtils->message("E", $rsp, $callback); + return 1; + } + # ex. /foo or /etc my $filedir = dirname($file);