MOUNTED = set() # register mountpoints
TMPFILES = set() # register tmpfiles
DATESTAMP = time.mktime(datetime.datetime.now().timetuple()) # unique identifier for syslinux.cfg
MOUNTED = set() # register mountpoints
TMPFILES = set() # register tmpfiles
DATESTAMP = time.mktime(datetime.datetime.now().timetuple()) # unique identifier for syslinux.cfg
# pylint: disable-msg=W0603
parser = OptionParser(usage=USAGE)
parser.add_option("--bootoptions", dest="bootoptions",
# pylint: disable-msg=W0603
parser = OptionParser(usage=USAGE)
parser.add_option("--bootoptions", dest="bootoptions",
help="use specified bootoptions as default")
parser.add_option("--bootloader-only", dest="bootloaderonly", action="store_true",
help="do not copy files but just install a bootloader")
help="use specified bootoptions as default")
parser.add_option("--bootloader-only", dest="bootloaderonly", action="store_true",
help="do not copy files but just install a bootloader")
for myfile in copy_files:
grml_file = search_file(myfile, iso_mount)
if grml_file is None:
for myfile in copy_files:
grml_file = search_file(myfile, iso_mount)
if grml_file is None:
for myfile in 'index.html', 'style.css':
grml_file = search_file(myfile, iso_mount)
if grml_file is None:
for myfile in 'index.html', 'style.css':
grml_file = search_file(myfile, iso_mount)
if grml_file is None:
for myfile in 'button.png', 'favicon.png', 'linux.jpg', 'logo.png':
grml_file = search_file(myfile, iso_mount)
if grml_file is None:
for myfile in 'button.png', 'favicon.png', 'linux.jpg', 'logo.png':
grml_file = search_file(myfile, iso_mount)
if grml_file is None:
-def handle_addon_copy(filename, dst, iso_mount):
+def handle_addon_copy(filename, dst, iso_mount, ignore_errors=False):
"""handle copy of optional addons
@filename: filename of the addon
@dst: destination directory
@iso_mount: location of the iso mount
"""handle copy of optional addons
@filename: filename of the addon
@dst: destination directory
@iso_mount: location of the iso mount
"""
file_location = search_file(filename, iso_mount)
if file_location is None:
"""
file_location = search_file(filename, iso_mount)
if file_location is None:
- # gpxe.lkrn
- handle_addon_copy('gpxe.lkrn', addons, iso_mount)
+ # gpxe.lkrn: got replaced by ipxe
+ handle_addon_copy('gpxe.lkrn', addons, iso_mount, ignore_errors=True)
def glob_and_copy(filepattern, dst):
"""Glob on specified filepattern and copy the result to dst
def glob_and_copy(filepattern, dst):
"""Glob on specified filepattern and copy the result to dst