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 Infrastructure

 
 
LinkBack Thread Tools
 
Old 03-11-2009, 01:02 PM
Chris Lumens
 
Default : Allow overriding the anaconda udev rules from an updates.img

> This is a modified version of a patch which was in the
> storage branch for a while. Since it turns out that
> it is usefull to be able to provide an updated anaconda
> udev rules, here is a patch which makes this possible.
>
> ---
> anaconda | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/anaconda b/anaconda
> index fc32dfb..dc50999 100755
> --- a/anaconda
> +++ b/anaconda
> @@ -170,6 +170,11 @@ def setupPythonUpdates():
> f),
> "/tmp/updates/%s/%s" %(pypkg, f))
>
> + if os.access("/tmp/updates/70-anaconda.rules", os.R_OK):
> + import shutil
> + shutil.copyfile("/tmp/updates/70-anaconda.rules",
> + "/etc/udev/rules.d/70-anaconda.rules")
> +
> def parseOptions():
> def resolution_cb (option, opt_str, value, parser):
> parser.values.runres = value

Looks good to me, though I wonder if it's worth generalizing to
/tmp/updates/*.rules. Who knows - we may need to test out updated udev
rules one day too.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 03-11-2009, 01:15 PM
Hans de Goede
 
Default : Allow overriding the anaconda udev rules from an updates.img

Chris Lumens wrote:

This is a modified version of a patch which was in the
storage branch for a while. Since it turns out that
it is usefull to be able to provide an updated anaconda
udev rules, here is a patch which makes this possible.

---
anaconda | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/anaconda b/anaconda
index fc32dfb..dc50999 100755
--- a/anaconda
+++ b/anaconda
@@ -170,6 +170,11 @@ def setupPythonUpdates():
f),
"/tmp/updates/%s/%s" %(pypkg, f))

+ if os.access("/tmp/updates/70-anaconda.rules", os.R_OK):
+ import shutil
+ shutil.copyfile("/tmp/updates/70-anaconda.rules",
+ "/etc/udev/rules.d/70-anaconda.rules")
+
def parseOptions():
def resolution_cb (option, opt_str, value, parser):
parser.values.runres = value


Looks good to me


Ok, I'll push it shortly.


, though I wonder if it's worth generalizing to
/tmp/updates/*.rules. Who knows - we may need to test out updated udev
rules one day too.



Might be, but (like the most of us) I really don't have the time right now
to write a patch to generalize it like that.

Regards,

Hans

_______________________________________________
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 08:22 PM.

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