2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-08 05:45:39 +00:00

undo the last checkin

This commit is contained in:
ligc
2015-01-09 15:08:24 +08:00
parent 98d8c6ec99
commit e047771685
2 changed files with 3 additions and 25 deletions

View File

@ -2201,12 +2201,7 @@ sub copycd
{
#If they say to call it something unidentifiable, give up?
#at least show a warning
$callback->(
{
warning => ["could not identify the distribution name \"$distname\", may cause problems."],
}
);
return;
}
unless (-r $mntpath . "/.discinfo")
{

View File

@ -212,19 +212,6 @@ sub copycd
#this plugin needs $path...
return;
}
if ( $distname
and $distname !~ /^debian/i
and $distname !~ /^ubuntu/i)
{
#If they say to call it something unidentifiable, give up?
#at least show a warning
$callback->(
{
warning => ["could not identify the distribution name \"$distname\", may cause problems."],
}
);
}
if ( $copypath || $noosimage || $nonoverwrite ){
$callback->({info=> ["copycd on debian/ubuntu doesn't support -p, -o, -w options!"]});
@ -266,9 +253,7 @@ sub copycd
# So that we have the netboot images
$isnetinst = 1 if ($line2[7] eq "NETINST");
if (!$distname) {
$distname="debian".$ver;
}
$distname="debian".$ver;
$detdistname="debian".$ver;
}
elsif ($prod eq "Ubuntu" or $prod eq "Ubuntu-Server" )
@ -276,9 +261,7 @@ sub copycd
# to cover for LTS releases
$darch = $line2[7] if ($line2[2] eq "LTS");
if (!$distname) {
$distname="ubuntu".$ver;
}
$distname="ubuntu".$ver;
$detdistname="ubuntu".$ver;
$discno = `cat $path/README.diskdefines | grep 'DISKNUM ' | awk '{print \$3}'`;
}