From 3fc42a55fb4377a0b93944e6ab99401c40ce2473 Mon Sep 17 00:00:00 2001 From: ertaozh Date: Mon, 5 Jan 2015 07:03:52 -0500 Subject: [PATCH] fix bug 4455: nodeset return error for ubuntu if no serialport attribute set, add warning information if no serialport attribute specified --- xCAT-server/lib/xcat/plugins/debian.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/debian.pm b/xCAT-server/lib/xcat/plugins/debian.pm index 010110f28..13f54eea8 100755 --- a/xCAT-server/lib/xcat/plugins/debian.pm +++ b/xCAT-server/lib/xcat/plugins/debian.pm @@ -848,6 +848,12 @@ sub mkinstall if ($sent->{serialflow} =~ /(hard|cts|ctsrts)/){ $kcmdline .= "n8r"; } + } else { + $callback->( + { + warning => ["rcons my not work since no serialport specified"], + } + ); } #$kcmdline .= " noipv6"; # add the addkcmdline attribute to the end @@ -1507,6 +1513,12 @@ sub mknetboot { $kcmdline .= "n8r"; } + } else { + $callback->( + { + warning => ["rcons my not work since no serialport specified"], + } + ); } # add the addkcmdline attribute to the end # of the command, if it exists