Ask Your Question
0

Custom configuration of live cd gets lost after install

asked 2012-11-28 17:50:27 -0500

umask007 gravatar image

Hi, currently I am trying to make a live cd with livecd-creator. There is some stuff I customize in the %post section of my kickstart file, for example:

sed 's/^AutoMount=true/AutoMount=false/g' -i /usr/share/gvfs/mounts/network.mount

It works on the live cd, but once I install the system with Anaconda, the change to the upper file is lost. What to do?

Greetings

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-11-30 07:43:46 -0500

Orestes910 gravatar image

I ran into this problem as well. The ks file you use to spin the livecd is only used for packages during the actual install process. Is the livecd a requirement or could you just use a traditional install DVD?

If it has to be live I would poke around the on the booted media for where Anaconda is looking for a ks file.

edit flag offensive delete link more

Comments

That answer is actually not correct. The issue is much more subtle: Most of the %post section is actually a big here document that's written to a /etc/rc.d/init.d/livesys. Anything you write in there only runs inside the live session and is indeed lost after installation. But if you write your sed line outside of that here document, i.e., after the EOF, it will be executed directly during live image generation and therefore will survive installation.

kkofler gravatar imagekkofler ( 2014-11-21 00:05:32 -0500 )edit

Question Tools

Stats

Asked: 2012-11-28 17:50:27 -0500

Seen: 129 times

Last updated: Nov 30 '12