From 1831aca0bfada877902befd83ecfa1c328acfe3a Mon Sep 17 00:00:00 2001 From: immarvin Date: Mon, 3 Aug 2015 03:23:19 -0400 Subject: [PATCH] add debug output for grub2 when xcatdebugnmode=1 --- xCAT-server/lib/xcat/plugins/grub2.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/grub2.pm b/xCAT-server/lib/xcat/plugins/grub2.pm index 233a5ade4..5aea7433e 100644 --- a/xCAT-server/lib/xcat/plugins/grub2.pm +++ b/xCAT-server/lib/xcat/plugins/grub2.pm @@ -168,6 +168,12 @@ sub setstate { if ($cref->{currstate}) { print $pcfg "#".$cref->{currstate}."\n"; } + + + if($::XCATSITEVALS{xcatdebugmode} eq "1"){ + print $pcfg "set debug=all\n"; + } + print $pcfg "set timeout=5\n"; $normalnodes{$node}=1; #Assume a normal netboot (well, normal dhcp,