All
I would like to create a LiveCD with preconfigured files. For example, ifcfg-eth0 set to specific values, custom services file (aka /etc/init.d/myservice), custom /etc/sysconfig/network/vncservers/iptables files. Is there examples of how to do that or some docs on how? All I see on the LiveCD webpage is how to build a LiveCD using the LiveCD tools.
Thanks Chris
On Wed, Jun 22, 2011 at 5:35 AM, Chris Robson Chris.Robson@nrl.navy.mil wrote:
All
I would like to create a LiveCD with preconfigured files. For example, ifcfg-eth0 set to specific values, custom services file (aka /etc/init.d/myservice), custom /etc/sysconfig/network/vncservers/iptables files. Is there examples of how to do that or some docs on how? All I see on the LiveCD webpage is how to build a LiveCD using the LiveCD tools.
Thanks Chris -- livecd mailing list livecd@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/livecd
I can't say that these are the correct way but I know of two options: 1) You can add it to the %post section of the kickstart file. For example you can do: cat >> /path/to/file << FOE text to add to file more text FOE
2) If you use --shell on livecd-creator you will get a shell at the end of the build that you can use to make custom changes.
Thank you!
- You can add it to the %post section of the kickstart file. For
example you can do: cat >> /path/to/file << FOE text to add to file more text FOE
That's the right way to do it for small changes (one or two files, or minor edits to an existing file).
If you want to include a whole load of files, you really need to build your own RPM (a bit of a pain), create a local repository (dead easy), and include that package in your kickstart file.
James
Thanks all
But I did figure it out, which was both the suggestions sent out.
Actually, for doing multiple files creating an rpm file isnt that bad once you figure it out, which is where I'm at currently. About 80% sure I know what I'm doing with rpm creation now *sigh*
Thanks again ...Chris
On 06/22/2011 10:36 AM, James Heather wrote:
- You can add it to the %post section of the kickstart file. For
example you can do: cat>> /path/to/file<< FOE text to add to file more text FOE
That's the right way to do it for small changes (one or two files, or minor edits to an existing file).
If you want to include a whole load of files, you really need to build your own RPM (a bit of a pain), create a local repository (dead easy), and include that package in your kickstart file.
James
-- livecd mailing list livecd@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/livecd
livecd@lists.fedoraproject.org