TurnKey Linux Virtual Appliance Library

Customizing the turnkey linux installer.

ericbouer's picture

Hello again.

I'm interested in customizing the installer.

I want to change things like default partition layout. add some dialog boxes for passwords and stuff like that.

What would be the right way of doing that ?

Where can I can the debian installer sources ?




Liraz Siri's picture

Great, see our development page

Maybe you missed it but our development page includes links to our GitHub account where we host a repository for di-live (and a few other components).

Study di-live source code to understand how it works. It's really not that complicated. There is a nice modular hooking mechanism we use to support adding dialogs to different appliances (e.g., password for MySQL on appliances that have MySQL). Maybe you can use that for some of the changes you want.

Regarding how to go about making the changes you want, you'll want to setup a good testing environment first. Then you iterate through the development cycle until di-live does what you want. For the testing environment I recommend you set up a virtual machine and run TurnKey Core live, then rsync your modified di-live to Core and test the installation. Rinse, repeat. Of course, there's no substitute for experimentation.

beric's picture

After digging that hole..

Have you teared town the original debian installer to skip things like hostname/locale/timezeone settings ?

I'm interested in putting all that back, I can use your wonderful di-live.d hooking but it's already part of a normal debian/ubuntu installation.

Is there a way to put those back ?

Many thanks.


Liraz Siri's picture

di-live is not directly based on debian-installer

We didn't start with debian-installer and tear stuff out. We're leveraging scripts from debian-installer and using them in an entirely new context. Alon wrote di-live so he's the authority on how it works. I'm guessing it probably shouldn't be too difficult add that stuff in. I'll ask him about it.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)