From b03e4f2b335234dd26021e37ea6cd238b42ba189 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 5 Apr 2012 21:11:54 +0000 Subject: [PATCH] Fix problem where mknb failed to create a correct discovery configuration on rhel6 uefi environments git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12137 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/mknb.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/mknb.pm b/xCAT-server/lib/xcat/plugins/mknb.pm index a2d8a33eb..b623cda5d 100644 --- a/xCAT-server/lib/xcat/plugins/mknb.pm +++ b/xCAT-server/lib/xcat/plugins/mknb.pm @@ -212,7 +212,11 @@ sub process_request { print $cfg "default=\"xCAT Genesis\"\ndelay=5\n\n"; print $cfg 'image=/tftpboot/xcat/genesis.kernel.'."$arch\n"; print $cfg " label=\"xCAT Genesis\"\n"; + if ($lzma_exit_value) { print $cfg " initrd=/tftpboot/xcat/genesis.fs.$arch.gz\n"; + } else { + print $cfg " initrd=/tftpboot/xcat/genesis.fs.$arch.lzma\n"; + } print $cfg " append=\"quiet xcatd=".$normnets->{$_}.":$xcatdport destiny=discover $consolecmdline BOOTIF=%B\"\n"; close($cfg); open($cfg,">","$tftpdir/xcat/xnba/nets/$net.uefi");