Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
adding preseed file into image
2020-08-03, 16:43
Post: #1
adding preseed file into image
Hi,

i'm trying to create an ipxe iso file where the preseed config file is directly referenced from the initial ramdisk.

I found some post doing something in this direction but using a png image, but when trying to

Code:
make bin/ipxe.iso  EMBED=current.ipxe,preseed.cfg CERT=$ca_file TRUST=$ca_file

it seems to break the initial ramdisk. I think the preseed.cfg is intepreted as a script and the build process trys to interpret it instead of just adding it.

the current.ipxe looks something like this:
Code:
#!ipxe
dhcp

set distribution buster
set base_url  http://deb.debian.org/debian/dists/${distribution}/main
set boot_params ... some boot params

kernel ${base_url}/installer-amd64/current/images/netboot/debian-installer/amd64/linux ${boot_params}
initrd $base_url/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz
boot

and the preseed.cfg is similar to the default debian 10 preseed

I would refrence it like described here

by adding an additional initrd to the current.ipxe
Code:
initrd debian/preseed.cfg preseed.cfg

Is this possible if yes please drop me some hint how to.

Thanks
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)