FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora SELinux Support

 
 
LinkBack Thread Tools
 
Old 12-02-2009, 07:22 PM
Peter Scheie
 
Default files in updates.img not being implemented

I realize this is anaconda-devel, not anaconda-customizers, but I didn't
know where else to ask. If there's a better list, let me know.

I've made some small changes to network_text.py (in stage2.img) that I
need for our internal purposes. I then built an updates.img (compressed
cpio archive method) containing my file and posted it into the images/
directory from which we install via http. Apache's logs show the
updates.img file being downloaded ahead of stage2.img, as it should be,
but anaconda is using the network_text.py contained in stage2.img rather
than mine. Any ideas why? I tried building a directory path to
network_text.py in updates.img, to match that in stage2.img, but that
made no difference. I know it's not my file because it works as
expected if I rebuild stage2.img with it. Perhaps I misunderstand what
http://fedoraproject.org/wiki/Anaconda/Updates is saying, and changes to
the files within stage2.img cannot be implemented by just placing them
into a updates.img file (?)

Peter

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 12-02-2009, 08:00 PM
David Lehman
 
Default files in updates.img not being implemented

On Wed, 2009-12-02 at 14:22 -0600, Peter Scheie wrote:
> I've made some small changes to network_text.py (in stage2.img) that I
> need for our internal purposes. I then built an updates.img (compressed
> cpio archive method) containing my file and posted it into the images/
> directory from which we install via http. Apache's logs show the
> updates.img file being downloaded ahead of stage2.img, as it should be,
> but anaconda is using the network_text.py contained in stage2.img rather
> than mine. Any ideas why? I tried building a directory path to

Switch to tty2 once the installer's UI comes up, then run this:

find /tmp/updates

Your file should be /tmp/updates/network_text.py,
not /tmp/updates/textw/network_text.py.

If there's nothing in /tmp/updates, check /tmp/anaconda.log to see what
went wrong.

HTH

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 12-03-2009, 09:52 AM
Ales Kozumplik
 
Default files in updates.img not being implemented

On 12/02/2009 09:22 PM, Peter Scheie wrote:

I realize this is anaconda-devel, not anaconda-customizers, but I didn't
know where else to ask. If there's a better list, let me know.

I've made some small changes to network_text.py (in stage2.img) that I
need for our internal purposes. I then built an updates.img (compressed
cpio archive method) containing my file and posted it into the images/
directory from which we install via http. Apache's logs show the
updates.img file being downloaded ahead of stage2.img, as it should be,
but anaconda is using the network_text.py contained in stage2.img rather
than mine. Any ideas why? I tried building a directory path to
network_text.py in updates.img, to match that in stage2.img, but that
made no difference. I know it's not my file because it works as
expected if I rebuild stage2.img with it. Perhaps I misunderstand what
http://fedoraproject.org/wiki/Anaconda/Updates is saying, and changes to
the files within stage2.img cannot be implemented by just placing them
into a updates.img file (?)

Peter



Hi Peter,

If the file you've changed is in a directory relative to the main script
I have found that sometimes you need to include the whole directory in
the updates.img. I'd say that this is because python loads other modules
from the same package first and only finds them where stage2.img is
mounted so when your module is imported python uses the original
directory again.


Ales

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 12-03-2009, 12:21 PM
Ales Kozumplik
 
Default files in updates.img not being implemented

On 12/03/2009 11:52 AM, Ales Kozumplik wrote:

Hi Peter,

If the file you've changed is in a directory relative to the main script
I have found that sometimes you need to include the whole directory in
the updates.img. I'd say that this is because python loads other modules
from the same package first and only finds them where stage2.img is
mounted so when your module is imported python uses the original
directory again.

Ales


A colleague just explained to me that this is not true for those files
that are not a part of another module (i.e. package). Yours is one of
those files and so should really be stored in the updates.img's toplevel.


Ales

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

Thread Tools




All times are GMT. The time now is 07:41 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org