[Fedora-livecd-list] Recursive livecd-creator problem

Warren Togami wtogami at redhat.com
Sun Jul 27 08:03:30 UTC 2008


I am trying to create a Live LTSP Server image.  This is pretty much 
just livecd-fedora-9-desktop.ks plus the ltsp-server package added, then 
ltsp-build-client runs in %post.  ltsp-build-client itself runs an 
internal instance of imagecreator to install the client chroot.  The 
chroot has another chroot installed within it, then it is all smashed 
into a single image.

This should be straightforward, except I ran into a problem.

The chroot created by livecd-creator has a blank /etc/resolv.conf, so 
the inner imagecreator trying to create a chroot fails as it cannot 
download repo metadata.

I cannot simply copy /etc/resolv.conf from the host to the first level 
chroot in %post since it is already running within the chroot at this 
point.  I then tried to use both %post --nochroot and %post in the same 
kickstart file.

It seems that %post --nochroot is ignored when you also have a %post?
Are both supposed to run (in what order?), or only %post?

Similarly %pre and %post in the same kickstart script, %pre seems to be 
ignored.

Anybody have any idea how I can achieve my goal of copying 
/etc/resolv.conf from the host and into the chroot, before or during %post?

Warren Togami
wtogami at redhat.com




More information about the Fedora-livecd-list mailing list