File localboot-fix-using-chain-c32.patch of Package cobbler
Index: cobbler-2.6.6/templates/pxe/pxedefault.template
===================================================================
--- cobbler-2.6.6.orig/templates/pxe/pxedefault.template
+++ cobbler-2.6.6/templates/pxe/pxedefault.template
@@ -8,7 +8,8 @@ ONTIMEOUT $pxe_timeout_profile
LABEL local
MENU LABEL (local)
MENU DEFAULT
- LOCALBOOT -1
+ COM32 chain.c32
+ APPEND hd0
$pxe_menu_items
Index: cobbler-2.6.6/cobbler/pxegen.py
===================================================================
--- cobbler-2.6.6.orig/cobbler/pxegen.py
+++ cobbler-2.6.6/cobbler/pxegen.py
@@ -88,17 +88,23 @@ class PXEGen:
dst, api=self.api, cache=False, logger=self.logger)
utils.copyfile_pattern('/var/lib/cobbler/loaders/menu.c32',
dst, api=self.api, cache=False, logger=self.logger)
+ utils.copyfile_pattern('/var/lib/cobbler/loaders/chain.c32',
+ dst, api=self.api, cache=False, logger=self.logger)
except:
utils.copyfile_pattern('/usr/share/syslinux/pxelinux.0',
dst, api=self.api, cache=False, logger=self.logger)
utils.copyfile_pattern('/usr/share/syslinux/menu.c32',
dst, api=self.api, cache=False, logger=self.logger)
+ utils.copyfile_pattern('/usr/share/syslinux/chain.c32',
+ dst, api=self.api, cache=False, logger=self.logger)
except:
utils.copyfile_pattern('/usr/lib/syslinux/pxelinux.0',
dst, api=self.api, cache=False, logger=self.logger)
utils.copyfile_pattern('/usr/lib/syslinux/menu.c32',
dst, api=self.api, cache=False, logger=self.logger)
+ utils.copyfile_pattern('/usr/lib/syslinux/chain.c32',
+ dst, api=self.api, cache=False, logger=self.logger)
# copy memtest only if we find it
utils.copyfile_pattern('/boot/memtest*', image_dst,
Index: cobbler-2.6.6/templates/pxe/pxelocal.template
===================================================================
--- cobbler-2.6.6.orig/templates/pxe/pxelocal.template
+++ cobbler-2.6.6/templates/pxe/pxelocal.template
@@ -5,5 +5,6 @@ TOTALTIMEOUT 0
ONTIMEOUT local
LABEL local
- LOCALBOOT -1
+ COM32 chain.c32
+ APPEND hd0