2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-21 19:22:05 +00:00

Improve the debug messages to show plugin

This commit is contained in:
Victor Hu 2019-05-09 17:23:50 -04:00
parent d80bda8eb4
commit 0ee133ce9b

View File

@ -2034,7 +2034,7 @@ sub copycd
if (-r $mntpath . "/.discinfo")
{
print "DEBUG - Attempt to detemine OS information from the .discinfo file ...\n";
print "DEBUG - [anaconda.pm] Attempt to detemine OS information from the .discinfo file ...\n";
open($dinfo, $mntpath . "/.discinfo");
$did = <$dinfo>;
@ -2050,7 +2050,7 @@ sub copycd
}
else
{
print "DEBUG - No .discinfo file found on media, will continue ...\n";
print "DEBUG - [anaconda.pm] No .discinfo file found on media, will continue ...\n";
}
if ($darch and $darch =~ /i.86/)
@ -2072,12 +2072,12 @@ sub copycd
$dno = $1;
}
}
print "DEBUG - Distname=$distname, OS=$desc, ARCH=$arch, Version=$dno\n";
print "DEBUG - [anaconda.pm] Distname=$distname, OS=$desc, ARCH=$arch, Version=$dno\n";
unless ($distname)
{
print "DEBUG - Could not find ID=$did in the discinfo database for OS=$desc ARCH=$darch NUM=$dno\n";
print "DEBUG - Attempting to auto-detect...\n";
print "DEBUG - [anaconda.pm] Could not find ID=$did in the discinfo database for OS=$desc ARCH=$darch NUM=$dno\n";
print "DEBUG - [anaconda.pm] Attempting to auto-detect...\n";
if ($desc =~ /IBM_PowerKVM/)
{
# check for PowerKVM support
@ -2124,7 +2124,7 @@ sub copycd
}
else
{
print "DEBUG - Could not auto-detect operating system.\n";
print "DEBUG - [anaconda.pm] Could not auto-detect operating system.\n";
# Cannot continue with what was detected, or attributes provided
return;
}
@ -2173,7 +2173,7 @@ sub copycd
my $osdistroname = $distname . "-" . $arch;
my $defaultpath = "$installroot/$distname/$arch";
print "DEBUG - Detected distname=$distname, arch=$arch defaultpath=$defaultpath osdistroname=$osdistroname\n";
print "DEBUG - [anaconda.pm] Detected distname=$distname, arch=$arch defaultpath=$defaultpath osdistroname=$osdistroname\n";
unless ($path)
{
$path = $defaultpath;