Copy gpxe.lkrn addon to the target.
authorUlrich Dangel <uli@spamt.net>
Tue, 27 Oct 2009 20:26:27 +0000 (21:26 +0100)
committerUlrich Dangel <uli@spamt.net>
Tue, 27 Oct 2009 20:26:58 +0000 (21:26 +0100)
grml2usb

index 70231c0..06a8f8a 100755 (executable)
--- a/grml2usb
+++ b/grml2usb
@@ -1117,6 +1117,12 @@ def copy_addons(iso_mount, target):
     else:
         exec_rsync(memtestimg, addons + 'memtest')
 
     else:
         exec_rsync(memtestimg, addons + 'memtest')
 
+    # gpxe.lkrn
+    gpxeimg = search_file('gpxe.lkrn', iso_mount)
+    if gpxeimg is None:
+        logging.warn("Warning: gpxe.lkrn not found (that's fine if you don't need it)")
+    else:
+        exec_rsync(gpxeimg, addons + 'gpxe.lkrn')
 
 def copy_bootloader_files(iso_mount, target):
     """copy grml's bootloader files to a given target
 
 def copy_bootloader_files(iso_mount, target):
     """copy grml's bootloader files to a given target