# Generates an iPXE ISO hybrid image # # requires syslinux, ipxe/ipxe-bootimgs, genisoimage, isohybrid class Bootdisk::ISOGenerator attr_reader :script def initialize(script, opts = {}) @script = script end def generate(&block) Dir.mktmpdir('bootdisk') do |wd| Dir.mkdir(File.join(wd, 'build')) File.open(File.join(wd, 'build', 'isolinux.cfg'),'w') do |file| file.write(<