Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Device-mapper Development (http://www.linux-archive.org/device-mapper-development/)
-   -   can we use wget in a kickstart file from livemedia-creator? (http://www.linux-archive.org/device-mapper-development/711478-can-we-use-wget-kickstart-file-livemedia-creator.html)

"David A. Marlin" 10-11-2012 01:53 PM

can we use wget in a kickstart file from livemedia-creator?
 
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?



Thank you,

d.marlin

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

"Brian C. Lane" 10-11-2012 04:14 PM

can we use wget in a kickstart file from livemedia-creator?
 
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/

--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

"David A. Marlin" 10-11-2012 05:13 PM

can we use wget in a kickstart file from livemedia-creator?
 
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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list





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


All times are GMT. The time now is 06:42 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.