TurnKey Linux Virtual Appliance Library

TKLPatch and modifying the image after installation [SOLVED]

bmschwar's picture

Big fan of TKLPatch here.  I'd like to write a patch that runs a script to modify a few files after the ISO is installed.

UPDATE: Learned about the inithooks system (http://code.turnkeylinux.org/inithooks/docs/README). Nice!

UPDATE2: Learned about /usr/lib/live-installer.d/.  Double nice!

Liraz Siri's picture

What are you cooking?

Not too many people have gotten as far as discovering inithooks and the live installer hooks. Good for you! Is there an interesting new TKLPatch in the works?
Ben Schwartz's picture

Not much of interest yet...

We're using live-installer.d to add a script that modifies /etc/mediawiki/LocalSettings.php after installation.  We need to do it this way because of the randomly generated mysql password, which your installer inserts into the configuration file.  We have a TKLPatch for this that will be released soon enough, though I'm not sure if anyone else would find it useful.

In principle we could have solved this by modifying the random-password insertion system, but we looked at that code for about two minutes and decided this would be the easier solution.

As for why we would want to do surgery on LocalSettings.php ... call me superstitious, but I'd rather not publicize the application until it's ready.  I'll make sure to let you know when it is, though.

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)