4

I'm trying to create a custom Debian ISO with software that I have built and packaged to .deb. I have my system running on a virtual machine and have fully tested my packages. For the software to work I have customised the kernel to my needs, recompiled and installed.

Now I'm wondering how do I package this into an ISO with the custom kernels and my own packages. I've tried using simple-cdd and a few other methods with no success.

The must be a simple way to build an ISO from you current system setup?

Any advice on how to do this?

2 Answers2

1

What you're looking for is called preseeding. Here is the official Debian documentation on the subject for reference.

I have used this project before which is for Ubuntu, but I guess it could easily be tweaked to work with Debian. It creates and unattended installation disk, but if you want your users to answer some of the questions that should be possible by changing the seed file.

Preseeding allows you to add your own packages to ISO's and run any script commands by using the late_command option, ie.

d-i preseed/late_command string cp -a /cdrom/pool/extras/packages/custom_script.sh /target/usr/local/bin/; in-target /usr/local/bin/custom_script.sh

Here is a gist with my local script (based on the link above). Line 76 in the bash script is where files are copied into the iso and the last line of the seed file is where it's copied into the final system and potentially executed.

Mikael Kjær
  • 1,553
-1

Recreating bootable ISO on Linux is tough. If you have a Windows PC, this can be done easily with the free app ImgBurn. I have done it multiples for creating custom ISO for my VPS.

A few more good tools for this:

How to edit bootable ISO for free?

How I do to modify the contents of a ISO file?