Re: can we use wget in a kickstart file from livemedia-creator?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/11/2012 11:14 AM, Brian C. Lane wrote:
On Thu, Oct 11, 2012 at 08:53:23AM -0500, David A. Marlin wrote:
I need to pull in a couple of files when composing an image using
livemedia-creator (F17).  I've included the following in the %post
section of my kickstart file:

------------------------------------------
pushd /boot
wget "http://intranet.ges.redhat.com/es/arm/vexpress/boot-vexpress"
wget "http://intranet.ges.redhat.com/es/arm/vexpress/boot-vexpress+x"
popd
------------------------------------------


but the files are not included in the resulting image, and I see the
following errors in the program.log:

------------------------------------------
08:37:45,095 INFO program: Running... /bin/sh /tmp/ks-script-HxP_dS
08:37:45,129 INFO program: /boot /
08:37:45,138 ERR program: --2012-10-11 08:37:45--
http://intranet.ges.redhat.com/es/arm/vexpress/boot-vexpress
08:37:45,141 ERR program: Resolving intranet.ges.redhat.com...
failed: Name or service not known.
08:37:45,144 ERR program: wget: unable to resolve host address
'intranet.ges.redhat.com'
08:37:45,152 ERR program: --2012-10-11 08:37:45--
http://intranet.ges.redhat.com/es/arm/vexpress/boot-vexpress+x
08:37:45,155 ERR program: Resolving intranet.ges.redhat.com...
failed: Name or service not known.
08:37:45,155 ERR program: wget: unable to resolve host address
'intranet.ges.redhat.com'
08:37:45,156 INFO program: /
------------------------------------------


I have successfully used wget in kickstart files from anaconda in
the past.  Both 'wget' commands succeed when run from command line
on the build host.

Should this be expected to work from livemedia-creator?  If not, is
there another recommended method that will pull in files from a URL?
https://fedoraproject.org/wiki/Anaconda/Kickstart#Chapter_5._Post-installation_Script

Looks like you're having dns lookup problems, probably because the virt
being used for the install isn't on the VPN. Or /etc/resolv.conf isn't
setup in the chroot environment.

In --novirt mode anaconda is running on the host so it might have
access to the VPN. %post --nochroot is a possibility, but you then have
to be very careful not to screw up the host system. eg. the path to
/boot will be /mnt/sysimage/boot/

I am using --no-virt.  The specific command is:

  livemedia-creator \
    --make-disk --no-virt --image-only --keep-image \
     --ks=/es/scratch/dmarlin/F18/kickstarts/F18-minimal.ks

I am running this from the Huntsville build farm, so the build host is not on a VPN (permanently on the intranet).  I also tried using URLs that are publicly available, but receive the same errors.


d.marlin
=======



_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux