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
[EMAIL PROTECTED]

--
Fedora-livecd-list mailing list
Fedora-livecd-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-livecd-list

Reply via email to